开发者

Rails Mailer :from not totally working

开发者 https://www.devze.com 2023-03-26 05:23 出处:网络
The address I am using with a mailer\'s :from is NOT showing up in sent emails. It is using the email address associated with the smtp_settings (gmail address) in the config.

The address I am using with a mailer's :from is NOT showing up in sent emails. It is using the email address associated with the smtp_settings (gmail address) in the config.

I can set the name of the sender using "Name ", but the email address gets changed upon message re开发者_StackOverflow社区ceipt.

Everything looks as it should in the logs, but not when the email shows up.

Any ideas?


In addition to my comment, I think this should explain what is happening and why:
https://webapps.stackexchange.com/questions/14464/spoof-sender-through-gmail-smtp-in-thunderbird

But like I said, if you debug the headers on both the sending and receiving end, you should be able to discover if something is changing something along the way (in this case it looks like GMail will patch the headers if you use an unverified From).

0

精彩评论

暂无评论...
验证码 换一张
取 消