mail function?

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
jrizzo17
Forum Newbie
Posts: 1
Joined: Mon Jul 07, 2003 4:18 pm

mail function?

Post by jrizzo17 »

ok...I've had a contact form on our web site for about 4 months now and all of a sudden it stopped working. I've narrowed it down to the fact that it will not send the form data to more then one email address and it will not send anything to our domain.

The server is hosted by someone here that I think just has a resellers account.

Any ideas on what this could be...I can post my code if needed, but I thought maybe someone else ran into the same problem...

Here's a little of it...

$ToEmail = "one@yahoo.com".',';
$ToEmail .= "two@yahoo.com".',';
$ToEmail .= "three_2003@yahoo.com";

$ToName = "Info Request";

$ToSubject = "Paltronics Contact Form";

$EmailBody = "Sender: $Name \r\nSenders Title: $Title\r\nSenders Address:\r\n$Address\r\nSenders Phone #: $Phone\r\nSenders Email: $Email \r\nSenders Company: $Company \r\nURL: $URL\r\n\r\nComments:\r\n$Comments \r\n\r\nInterests:\r\n\t $Display\r\n\t $Slot\r\n\t $Table\r\n\t $Media\r\n\t $One_Link\r\n\t $Downloads\r\n\t $Trade_Show_Information\r\n\t $Other\r\n\r\n";

$EmailFooter="\n\nMessage sent: $time\n\nRemote IP address: $ip";

$Message = $EmailBody.$EmailFooter;

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$Name." <".$Email.">");

Thanks,
John
Post Reply