dongmei8460 2018-07-16 06:15
浏览 125


I'm trying to send email with my laravel local app using MDaemon WorldClient Private Email email server but i always get this error

Expected response code 250 but got code "530", with message "530 5.7.0 Authentication required"

With my laravel local app, I already tried to send email using mailtrap and gmail and both works fine.

This is my email configuration in .env file


To see if there's something wrong with my email configutraion, I also tried to send email using outlook on my computer with the same email account and configuration that I use on laravel and it works perfectly on outlook. I already double check the outlook SMTP configuration and the laravel but I have no idea why it always fails on laravel.

By the way, i'm using mailable on laravel.

Thank you

  • 写回答

1条回答 默认 最新

  • dou1908 2018-07-20 10:48

    Sorry I did a silly mistake.

    It's just the from parameter of the email and the email username doesn't match.

    Just for a tip, make sure you set all the email config on the .env file. It'll help you a lot. I did the mistake because I set the from parameter in Mailable class and the other in .env.

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



    • ¥20 powerbulider 导入excel文件,显示不完整
    • ¥20 #关于multisim绘图遇到的问题
    • ¥15 用keil调试程序保证结果进行led相关闪烁
    • ¥15 paddle训练自己的数据loss降不下去
    • ¥20 用matlab的pdetool解决以下三个问题
    • ¥15 单个福来轮的平衡与侧向滑动是如何做到的?
    • ¥15 嵌入式Linux固件,能直接告诉我crc32校验的区域在哪不,内核的校验我已经找到了,uboot没有
    • ¥20 h3c静态路要求有详细过程
    • ¥15 调制识别中输入为时频图,星座图,眼图等
    • ¥15 数据结构C++的循环、随机数问题