I configured laravel\'s mail service with mandrill driver. No problems here!
Now, at certain point of my application, I need to send a mail via gmail.
I did
For Laravel version 7.x you can now state the mail driver to use while sending an email. All you need to configure all your connections & credentials properly in config/mail.php
. Once configured, you can specify the name of the driver via mailer()
function as below:
Mail::mailer('postmark')
->to($request->user())
->send(new OrderShipped($order));
I hope it helps someone.