[英]How to send multiple domain email in laravel
我使用 laravel 7 并尝试使用 Mailtrap 发送 email 并且它成功但实际上我想使用此设置发送gmail
, yahoo
和任何其他邮件和多用户 iuserenv 文件。
MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=example@gmail.com //or any other emails not exactly gmail MAIL_PASSWORD=somepassword MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS=email@yahoo.com //or any other emails not exactly yahoo MAIL_FROM_NAME="${APP_NAME}"
这是一篇有趣的文章,描述了这个问题的解决方案https://laravel-news.com/allowing-users-to-send-email-with-their-own-smtp-settings-in-laravel
这里还有一篇来自旧版 laravel 的类似文章
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.