I am writing an app that send mail to the client using laravel and swiftmailer but I get Process could not be started [The system cannot find the path specified.] error.
Here is my code
env settings
MAIL_DRIVER = smtp
MAIL_HOST = smtp.gmail.com
MAIL_PORT = 587
MAIL_USERNAME = "chuksdsilent@gmail.com"
MAIL_PASSWORD = moneymatters
MAIL_ENCRYPTION = tls
controller
$data = array('name'=>"Virat Gandhi");
Mail::send('emails.mail', $data, function($message) {
$message->to('chuditex2004@yahoo.com', 'Tutorials Point')->subject
('Laravel HTML Testing Mail');
$message->from('chuksdsilent@gmail.com','Virat Gandhi');
});
echo "HTML Email Sent. Check your inbox.";
I have checked the code but can't figure out what is the cause of the error
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire