Here's what I do...
Forward your GMail to your MobileMe account. Then, use GMail's servers for SMTP (Check out Google for information on how to do it).
Then, whenever you send mail, the GMail servers automagically change the sent from address to your GMail address. Note that this does not work when using MobileMe webmail, only through Mail.app (or other mail programs) and the iPhone.