Email With Rails 3 and Heroku Net::SMTPSyntaxError: 501 Syntax error

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 01:58:50

Your from is invalid. Try from 'test@example.com' instead.

If you want to show custom string in from then you can use something like

from  "Test <info@domain.com>"

and when you send email title would be Test

The Heroku guide is for Rails < 3.0. Use the Rails guide for 3.0.

Net::SMTPSyntaxError 501 error is thrown if you have bad sender address. Sender address should be an email address. Any fake email will also do. like: abc@fakemail.com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!