doupi7619 2017-12-18 11:00
浏览 105
已采纳

laravel发送电子邮件到mailtrap而不是gmail

in development environment i used mailtrap to test emails and evrything is OK.

I create digitalocean server for test online and I changed all mail settings from mailtrap to gmail, in .env and config/mail.php.

I try long time to send emails to real emails but its failed and send all emails to mailtrap inboxes.

I cleared every thing:

php artisan clear-compiled

php artisan config:clear

php artisan view:clear

php artisan cache:clear

php artisan config:cache

composer dump-autoload

Also I cleared all redis keys. But it send all emails to mailtrap.

Note the server is ubuntu 17.04

i test on my local server it is success and send to real emails.

what should i do to solve this issue?

  • 写回答

1条回答 默认 最新

  • doukengzi3517 2017-12-18 11:02
    关注

    In case you are using queues make sure you have restarted your queue worker. You should run

    php artisan queue:restart
    

    command to make queue process see the changes. More about this in Queue Workers & Deployment

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用C语言输入方程怎么
  • ¥15 网站显示不安全连接问题
  • ¥15 github训练的模型参数无法下载
  • ¥15 51单片机显示器问题
  • ¥20 关于#qt#的问题:Qt代码的移植问题
  • ¥50 求图像处理的matlab方案
  • ¥50 winform中使用edge的Kiosk模式
  • ¥15 关于#python#的问题:功能监听网页
  • ¥15 怎么让wx群机器人发送音乐
  • ¥15 fesafe材料库问题