symfony - swiftmailer send email using gmail with custom domain -


in symfony2.3 using swiftmailer.

i have google apps address myname@abc.com , normal gmail address myname@gmail.com

when using:

mailer_transport:  smtp mailer_encryption: ssl auth_mode:         login mailer_host:       smtp.gmail.com mailer_user:       myname mailer_password:   pymass 

the configuration works great , sends emails gmail address using myname@abc.com mailer_user correct password doesn't work.

any ideas?

the configuration sending (what assume is) google apps account differs gmail account. swiftmailer parameters should this:

mailer_transport:  smtp mailer_host:       smtp.gmail.com mailer_user:       myname@abc.com mailer_password:   pymass auth_mode:         login port:              587 encryption:        tls 

make sure include entire email address port , encryption protocol.

i derived solution this article few months back.

also, small note: encryption not mailer_encyption. can read more swiftmailer parameters symfony here.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -