dsfdsf46465 2019-08-09 06:00
浏览 88

Laravel 5.4 + SMTP + Gmail + Aws EC2 ubuntu 16不工作预期的响应代码250但是得到了代码“”,带有消息“”

I have tried each Possible solution mentioned accross site but still i am unable to send smtp mail using Gmail on AWS EC2 ubuntu 16 but the same code is working on rackserver ubuntu 16.

Here the solutions i tried

following code in config/mail.php

driver : "smtp",
host : "smtp.gmail.com",
port : 587,
address: "toadysapps@gmail.com",
encryption : "tls"  or "ssl" //tried alternate
username : "toadysapps@gmail.com"
password : mypassword or gmail appkey // tried both alternate

i have enabled less secure password in gmail. Tried the following solution

sudo nano /etc/gai.conf

Uncomment the following line (remove the #):

precedence ::ffff:0:0/96 100

https://laracasts.com/discuss/channels/laravel/laravel-53-not-sending-emails-in-aws-ec2-ubuntu-1604?page=1

Below are my security groups in aws ec2 OutBound Rule Inbound Rule

Please help me someone what i am missing or what should i do.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 双层网络上信息-疾病传播
    • ¥50 paddlepaddle pinn
    • ¥20 idea运行测试代码报错问题
    • ¥15 网络监控:网络故障告警通知
    • ¥15 django项目运行报编码错误
    • ¥15 请问这个是什么意思?
    • ¥15 STM32驱动继电器
    • ¥15 Windows server update services
    • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
    • ¥15 模糊pid与pid仿真结果几乎一样