I am having a trouble of sending mail from xampp localhost using gmail. And after a long time I finally successful on it. And I am sharing it with all you. If I am wrong need proper solution for it.
in config.yml of your symfony 2 Write those
swiftmailer:
disable_delivery: false
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
port: %mailer_port%
encryption: %mailer_encryption%
In your parameters.yml
mailer_transport: smtp
mailer_host: smtp.gmail.com
mailer_user: [email protected]
mailer_password: Your_gmail_pass
mailer_port: 465 or 587
mailer_encryption: ssl
And after a long time I finally successful on it. And I am sharing it with all you
? – Theorymailer_transport: smtp
ormailer_transport: gmail
? I am really confused in this post, question and answer are misleading! please to provide with the exact info. – Guileful