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 数电设计题 没有设计思路 不知道用什么芯片进行设计 求提供设计思路
  • ¥15 在动态多目标优化问题中,第一幅图展示的是问题DF6的相关定义和绘制的POS和POF图,请问图中公式PS(t)和PF(t)是如何推导的
  • ¥60 设计一种优化算法结合案例给出智能仓储四向穿梭车的调度计划
  • ¥15 Errno2:No such file or directory,在当前文件确实没有该图片,怎么解决?
  • ¥15 博世摄像头数据存储的问题(iscsi)
  • ¥15 如何实现对学生籍贯信息管理系统的选择排序
  • ¥15 写一个51单片机的时钟代码
  • ¥15 git clone报错
  • ¥15 3d-slicer超声造影动态图像导入报错
  • ¥15 化工过程分析与合成问题求解决