Hi, I am working on a clients site, got her set up with you guys, as I have had a good experience with you... She is on the dooku server (into starwars names my guess)
Here is my problem. I wrote an email function that should email to a person. It doesnt, and fails when trying... I looked over the forums and found that I should be using a -f additional parameter, but that didnt seem to fix it.
Any help would be greatly appreciated.
>function mailme($to, $subject, $message){
global $fromemailaddress;
$headers="MIME-Version: 1.0\r\n";
$headers.="Content-type: text/html; charset=iso-8859-1\r\n";
$headers.="From: $fromemailaddress\r\n";
$headers.="Reply-To: $fromemailaddress\r\n";
$headers.="X-Mailer: PHP/".phpversion();
print "$to\n\n$subject\n\n$message\n\n\n\n$headers\n\n-f$fromemailaddress\n\n\n\n";
if(mail($to,$subject,$message,$headers,"-f$fromemailaddress")){print "Mail Sent";}else{print "Mail Rejected";}
}
I tested it with a webmaster@mysite.com as well as the actual email address the client is using, but nothing is working.
No mail is being sent, and it of course prints Mail Rejected...