ActionMailer + GMail STMP: How to set FROM header?

I am using Ruby 1.8.7 with Rails 2.3.8 and the GMail SMTP configuration.

However all mail being sent by my application has its 'from' field as
the gmail address that logs in, instead of what I supply in the from
function of my ActionMailer.

Is there any way to change this, or this is a restriction originating
from GMail? The Reply-to address seems to work though.

This is part of Gmail. No matter what you set the From as in your ActionMailer, GMail will send it from your Gmail account.

I had to switch from using Gmail to a locked-down direct SMTP server using exim4.


Jon Brisbin