Rails and Gmail SMTP, how to use a custom from address

后端 未结 3 1497
忘掉有多难
忘掉有多难 2020-12-19 06:25

I\'ve got my Rails (2.1) app setup to send email via Gmail, however whenever I send an email no matter what I set the from address to in my ActionMailer the emails always co

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 07:15

    This is most likely to stop people trying to send email from addresses that Google can't verify that the sender owns. This is fairly common amongst mail providers, and is probably a safeguard to stop people using Google's services for sending spam.

提交回复
热议问题