New server not sending php mail correctly

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gotornot
Forum Commoner
Posts: 54
Joined: Fri Jul 31, 2009 2:30 am

New server not sending php mail correctly

Post by gotornot »

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????
Post Reply