samedi 3 septembre 2016

How to use mail function in laravel 5.2?

I have tried mail function in laravel but i did not get success.Kindly suggest me that how to send email in laravel. here is my code in Controller.

 $Body = "$CusName ($UID - $CusEmail ) from $SiteID";

 $param = array('User'=>$Use, 'Pass'=>$Pass,'Body'=>$Body,'SiteID'=>$SiteID);
 $Email['To']="xyz@gmail.com";
 $Email['Sender']=$CusEmail;
 $Email['Body']=$data;

 $mail= mail("xyz@gmail.com","My subject",$data);

Thankyou



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire