kcis8rm
03-13-2007, 09:40 AM
Hi
I've set up a contact us form where a user can add their Email address, a subject and a message and used PHPs built in Email capbilities in the below function:
<?php
$to = "recipient@example.com";
$subject = $_REQUEST["subject"];
$body = $_REQUEST["message"];
mail($to, $subject, $body)
?>
Problem is when it arrives at the Email address the Email is from ananymous@ns.urlplace.net rather than my domain name. Can somebody tell me why this is, and better yet tell me how to fix it so that mail arrives with an address like enquiry@mydomain.net
Many thanks in advance
Ross
I've set up a contact us form where a user can add their Email address, a subject and a message and used PHPs built in Email capbilities in the below function:
<?php
$to = "recipient@example.com";
$subject = $_REQUEST["subject"];
$body = $_REQUEST["message"];
mail($to, $subject, $body)
?>
Problem is when it arrives at the Email address the Email is from ananymous@ns.urlplace.net rather than my domain name. Can somebody tell me why this is, and better yet tell me how to fix it so that mail arrives with an address like enquiry@mydomain.net
Many thanks in advance
Ross