p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 (http://p2p.wrox.com/forumdisplay.php?f=123)
-   -   Changing the "From" header when sending email (http://p2p.wrox.com/showthread.php?t=42925)

rinventive May 23rd, 2006 03:56 PM

Changing the "From" header when sending email
 
I have been trying to find a way to change the name of the senders email when using the mail() function. I would like it to change the senders email address to read something like "Company Name Inc".

The problem is when I set the $from = "From: Company Name Inc"

I get the email with the from being: Company@ourserver.comName@ourserver....urserv er.com

is there anyway I can change this?

I have found that if I change it to CompanyNameInc@theCompany.com

it sends the email with the from being:

CompanyNameInc@theCompany.com

I would really like to have it read: "Company Name Inc" period I want to remove the @whatever.com all together.


Thanks for your help



All times are GMT -4. The time now is 06:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.