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
I believe it's just something Gmail does when mail is sent through its SMTP, as it was mentioned that they do this on a tutorial about using their SMTP to send mail.
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.
I think I tried and failed in the past myself, but I did just come across this on the gmail site: http://mail.google.com/support/bin/answer.py?ctx=gmail&hl=en&answer=22370
Looks like you can specify a custom "From" address within gmail, and perhaps at that point, see if setting @from will work (now that gmail knows about your custom from address).