Hi,
How to I have multiple email accounts setup in the configuration to send emails using different from address's in Laravel 4.
Regards,
Gayan
Using this , I was able to swap the mail transporter on the fly.
$transport = SmtpTransport::newInstance('smtp.gmail.com', 25);
$transport->setEncryption('tls');
$transport->setUsername('gayan@x.com');
$transport->setPassword('xxxxxx');
$swift = new Swift_Mailer($transport);
Mail::setSwiftMailer($swift);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community