电子邮件已发送但未使用swiftMailer接收

时间:2018-01-22 21:52:32

标签: symfony email send swiftmailer

我在Symfony Swiftmailer面临发送邮件的问题。

使用命令:

php app / console swiftmailer:email:send

这是我的swiftMailer.yaml

swiftmailer:

transport:            gmail
username:             "**************@*******"
password:             "****************"
host:                 smtp.gmail.com
port:                 465
encryption:           ~
auth_mode:            ~
sender_address:       ~
antiflood:
    threshold:            99
    sleep:                0
delivery_addresses:   ~
disable_delivery:     ~
logging:              true

有谁知道这是什么问题?

1 个答案:

答案 0 :(得分:1)

如果您的Gmail帐户使用了两步验证,则必须generate an App password并将其用作邮件程序密码的值。您还必须确保allow less secure apps to access your Gmail account

相关问题