dev14
dev14

Reputation: 1

Email Sent But Not Receiving with swiftMailer

I am facing issue in Symfony Swiftmailer to send mail.

By Using command:

php app/console swiftmailer:email:send

and this is my 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

is there anyone know what is the problem ?

Upvotes: 0

Views: 475

Answers (1)

dlondero
dlondero

Reputation: 2597

If your Gmail account uses 2-Step-Verification, you must generate an App password and use it as the value of the mailer password. You must also ensure that you allow less secure apps to access your Gmail account.

Upvotes: 1

Related Questions