As part of a site I've set the from field as an e-mail alias/nickname attached to a gmail apps account (gmail on a domain name address).
I've got the example here working on my site but it exposes the main account rather than the alias.
$from = "email@example.com"
$username = "firstname.lastname@example.org"
For some reason it doesn't default the e-mail from field as the $from variable to an e-mail sent to someone, it sends the $username instead...
Any ideas on how to fix this or is it something stuck with gmail / Google Apps?