troubleshooting Question

Defaulting a GMail from Alias instead of a username with PEAR mail & PHP

Avatar of kiwistag
kiwistagFlag for New Zealand asked on
PHPApache Web Server
6 Comments2 Solutions415 ViewsLast Modified:
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.
http://stackoverflow.com/questions/712392/send-email-using-gmail-smtp-server-from-php-page

I.E
$from = "bookings@domain.com"
$username = "employee@domain.com"


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?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros