gotornot Posted March 7, 2010 Share Posted March 7, 2010 HI Heres a tough one. I have moved servers and on the old server mail that im sending usinh the mail() function is working correctly. However on the new server it is not!!! Is this just a php file tweak somewhere or can i use a piece of code in the maill class script that will loop around this problem. A snippet of the code is: --PHP-alt-<?php echo $random_hash; ?> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit <?php echo $messageouttext ; ?> --PHP-alt-<?php echo $random_hash; ?> Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit <?php echo $messageouthtml ; ?> --PHP-alt-<?php echo $random_hash; ?>-- Any help people???? Link to comment https://forums.phpfreaks.com/topic/194408-new-server-not-sending-php-mail-correctly/ Share on other sites More sharing options...
Rustywolf Posted March 7, 2010 Share Posted March 7, 2010 Theres a certain option/command/addon/w.e to use the mail() function ask your host if they can enable Link to comment https://forums.phpfreaks.com/topic/194408-new-server-not-sending-php-mail-correctly/#findComment-1022644 Share on other sites More sharing options...
gotornot Posted March 7, 2010 Author Share Posted March 7, 2010 Hi It does send the mail its just i cant send html headers just plain text and it doesnt translate it properly Link to comment https://forums.phpfreaks.com/topic/194408-new-server-not-sending-php-mail-correctly/#findComment-1022682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.