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.