Hello everyone, So here, I have not managed to solve a small problem regarding sending email. Let me explain, in the mail.php file I typed in the username my email, but when I write the check $ message-> from ('info@entreprise.com', 'Laravel'); the sender of the email is my email in the file mail.php and not info@entreprise.com . If you have ideas or if you have any results to me to solve this problem I'm interested.
Thank you for your help.
Please include the relevant code / config.
<?php return array
( 'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => 'info@test.com', 'name' => 'admin'),
'encryption' => 'tls',
'username' => 'admin@gmail.com',
'password' => 'pass',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);
/***********************************************************/
Mail::send('emails.alert.send', compact('jobs'), function($message) use($alert) { $message->from('info@test.com'', 'admin');
$message->replyTo('info@test.com', 'admin')
->to('email1@test.com')
->subject("New Alert");
});
I want to send email with info@test.com
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community