cesarcesar Posted July 26, 2007 Share Posted July 26, 2007 I am using a standard mail function within an AMFPHP Class that i have used many times. Now, when i use it it does not work right. When a mail is sent, the $header info and html shows in the email. I would like to know why the header info is showing in the email, along with why the HTML code is not rendering. I will post examples of code and result. Please provide a solution b4 i pull my hair out. Running PHP 4.3.9 on Apache function sendMail($vars) { $email = "[email protected]"; $headers ="MIME-Version: 1.0\r\n"; $headers .= "From: {$email}\r\n"; $headers .= "Return-Path: {$email}\n"; $headers .= "Reply-To: {$email}\n"; $headers .= "Message-Id: <".time()."@".$_SERVER['SERVER_NAME'].">\n"; $headers .= "X-Mailer: php-mail-function-0.2\n"; $content = "<b>test</b>"; mail("[email protected]", "Subject", $content, $headers); } This is the email that is returned. From: [email protected] Reply-To: [email protected] Message-Id: <[email protected]> X-Mailer: php-mail-function-0.2 <b>test</b> Link to comment https://forums.phpfreaks.com/topic/61799-mail-function-showing-header-info/ Share on other sites More sharing options...
redarrow Posted July 26, 2007 Share Posted July 26, 2007 u sure you got a email sent. Link to comment https://forums.phpfreaks.com/topic/61799-mail-function-showing-header-info/#findComment-307732 Share on other sites More sharing options...
cesarcesar Posted July 26, 2007 Author Share Posted July 26, 2007 yes.. this is how i have posted the email result Link to comment https://forums.phpfreaks.com/topic/61799-mail-function-showing-header-info/#findComment-307735 Share on other sites More sharing options...
cesarcesar Posted July 26, 2007 Author Share Posted July 26, 2007 Solution: http://phpbuilder.com/board/showthread.php?p=10816175#post10816175 Link to comment https://forums.phpfreaks.com/topic/61799-mail-function-showing-header-info/#findComment-307746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.