Hi,
I am running a simple mail function, and I want to set the FROM header
within the function:
mail(
"mailbox@provid er.com",
"testsubjec t",
"testbody",
"From: Oliver <oliver@mydomai n.com>
X-Sender: <oliver@mydomai n.com>
X-Mailer: Test Script
Return-Path: <oliver@mydomai n.com>
Content-Type: text/plain; charset=iso-8859-1"
);
However, form my phpinfo I can see that the from_header is:
FROM_HEADER provider.com
Now, all outgoing emails are changed in the header:
From: Oliver <oliver@provide r.com>
(!)
How can I prevent this?
thanks
Oliver
I am running a simple mail function, and I want to set the FROM header
within the function:
mail(
"mailbox@provid er.com",
"testsubjec t",
"testbody",
"From: Oliver <oliver@mydomai n.com>
X-Sender: <oliver@mydomai n.com>
X-Mailer: Test Script
Return-Path: <oliver@mydomai n.com>
Content-Type: text/plain; charset=iso-8859-1"
);
However, form my phpinfo I can see that the from_header is:
FROM_HEADER provider.com
Now, all outgoing emails are changed in the header:
From: Oliver <oliver@provide r.com>
(!)
How can I prevent this?
thanks
Oliver
Comment