Reply to Problem: No headers sent with mail()

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация