$url_str = $request->account_name . ".sgkid.com/";
$objDemo = new \stdClass();
$objDemo->firstname = $request->first_name;
$objDemo->account_name = $request->account_name;
$objDemo->title = 'Registration Information';
$objDemo->username = $request->username;
$objDemo->password = $password;
$objDemo->url = URL('/');
$objTmp = new \stdClass();
$objTmp->firstname = $request->first_name;
$objTmp->account_name = $request->account_name;
$objTmp->title = 'Booking Registration Information';
$objTmp->username = $request->username;
$objTmp->password = $password;
$objTmp->url = prep_url($url_str);
Mail::to($request->email)->send(new BookingRegistration($objTmp));
Mail::to($request->email)->send(new AccountRegistration($objDemo));
I have create send mail in Laravel. on objDemo working well. but for ObjTmp not working maybe the parameter $url_str have any "." value make it not working .
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire