Using ActionMailer with a company Gmail account

寵の児 提交于 2019-12-05 09:52:44

I have my own domain setup at google for mail, the url to log into that directly is

http://mail.google.com/a/my.company.com

My rails app that sends mail through that account, has

:domain => "my.company.com"

as well as all the other fields you have.

"<user_name>" needs to be the whole email address, not just the user name.

:address  => 'smtp.gmail.com',
:port   => 587,
:domain => 'busiess.com',
:user_name => 'username@company.com',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!