0
votes

I using laravel 7 and tried to send email using Mailtrap and it's successfully but actually i want to send gmail, yahoo and any other mail and multiuser i using this setting in .env file

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
[email protected] //or any other emails not exactly gmail
MAIL_PASSWORD=somepassword
MAIL_ENCRYPTION=null
[email protected] //or any other emails not exactly yahoo
MAIL_FROM_NAME="${APP_NAME}"
1
You want to send emails from different accounts is that correct?Kirmin

1 Answers

0
votes

Here is an interesting article that describrs the solution to this problem https://laravel-news.com/allowing-users-to-send-email-with-their-own-smtp-settings-in-laravel

Also here is a similar article from an older laravel version

multiple mail configurations