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 用keil调试程序保证结果进行led相关闪烁
    • ¥15 paddle训练自己的数据loss降不下去
    • ¥20 用matlab的pdetool解决以下三个问题
    • ¥15 一道python的homework题,老是非零返回求解
    • ¥15 单个福来轮的平衡与侧向滑动是如何做到的?
    • ¥20 #数电实验的一些问题
    • ¥15 嵌入式Linux固件,能直接告诉我crc32校验的区域在哪不,内核的校验我已经找到了,uboot没有
    • ¥20 h3c静态路要求有详细过程
    • ¥15 调制识别中输入为时频图,星座图,眼图等
    • ¥15 数据结构C++的循环、随机数问题