Does anyone know why the following code produces emails with the from field looking like this... Name@mydomain.com? I'm guessing that the mydomain.com is something to do with how my ISP has set something up on their sever. I would obviously like the emails to arrive in my inbox without the @mydomain.com at the end of everyone’s name. Any ideas?
Many thanks Ant
<?php
$message=$POST['message'];
$name=$POST['name'];
$email=$POST['email'];
$subject=$POST['subject'];
$recipient='me@myemail.com';
mail($recipient,$subject,$message,
"From: $name\r\n" .
"Reply-To: $email\r\n" .
"X-Mailer: PHP/" . phpversion());
if ($send=1 )
print "Your message has been sent" ;
else
print "There was an error sending your message"
?>