Reputation: 3
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}"
Upvotes: 0
Views: 1124
Reputation: 301
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
Upvotes: 0