Page 1 of 1

[SOLVED] mail() problems!

Posted: Mon Jun 28, 2004 12:53 pm
by Joe
I have made a simple mail script in php which works great apart from the fact that instead of displaying the administrators email in the email submission it displays my providors address. I tried this on a couple of other servers and it did the exact same.

My code go's like:

Code: Select all

$email = $_POST['email'];
 $AdminEmail = "webmaster@site.com";
 $EmailSubject = "Thankyou for your submision!";

 $EmailContent = "Your submission is now under review! Thank You...";

 mail($email, $EmailSubject, $EmailContent, $AdminEmail);
Any help appreciated!


Joe 8)

Posted: Mon Jun 28, 2004 12:55 pm
by markl999
Try:

Code: Select all

mail($email, $EmailSubject, $EmailContent, "From: $AdminEmail\r\n");

Posted: Mon Jun 28, 2004 1:07 pm
by Joe
Thanks alot mark. Worked perfect. Problem Solved!!!

Joe 8)