Alright, I'm trying to use the mail function, it works great internally, however it cannot send exteranl mail. Any ideas?
here is the error message I get:
Warning: mail() [function.mail]: SMTP server response: 550 not local host domain.com, not a gateway in d:\Inetpub\wwwroot\rotarydistrict\monthSendmail.php on line 11
Could not send mail
here is the code (taking input from a form)
<?
//sendmail
$to = "email@domain.com";
$from = "email@domain.com";
$subject = "Monthly Attendence"." ".$club_name;
$message = "date: ".date("m/d/y")."\r\n"."Club: "."$club_name"."\r\n"."Centurians: "."$centurians"."\r\n"."Paul Harris Fellows: "."$harris_fellows"."\r\n"."Sustaining Harris Fellows: "."$harris_sustain"."\r\n"."Benefactors: "."$benefactors"."\r\n"."Major Donors: "."$major_donors"."\r\n"."Total Members: "."$total_member"."\r\n"."Average Attendence: "."$ave_attend"."\r\n"."Number of Meetings Held: "."$meetings_held"."\r\n"."Secretaries Name: "."$secretary_name"."\r\n"."Meetings Canceled: "."$meeting_canceled";
mail($to, $subject, $message, "$from\r\nX-Priority: 1 (Highest)" )
or print "Could not send mail";
?>
Thank you in advance!