Reputation: 1
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
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