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('[email protected]');
$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