|
Posted by Juul on 09/08/05 11:17
Hi,
My hostingprovider just updated to PHP 4.4. Since that time I have problems
using the mail() function in PHP. I can't send headers anymore and my
provider don't know what's wrong.
Here's a sample script:
if (mail("xxx@xxx.com", "test mail", "This is a <B>test</B>!", "From:
yyy@yyy.com (yyy)\r\nContent-type: text/html")) {
print "Sent";
}
else {
print "Not sent";
}
I receive this body-text on xxx@xxx.com:
Content-type: text/html
Message-Id: <20050908074313.09205430036@xxx.xxx.com>
Date: Thu, 8 Sep 2005 09:40:02 +0200 (CEST)
This is a <B>test</B>!
Does anybody know what's going wrong?
Regards,
Juul
[Back to original message]
|