Page 1 of 1

mail function?

Posted: Mon Jul 07, 2003 4:18 pm
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