thanks very much for replying. What was on the link I sent was this PHP on Windows Use the PHP mail function and set the mail from using the following line of code - replacing email@mydomain with the correct domain name. ini_set("sendmail_from", " email@mydomain "); So I am assuming that all I would need to do was to add it to my code like this, Is this right? thanks [code]<?php ini_set("sendmail_from", " enquiries@celebcars.co.uk"); // get posted data into local variables $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "enquiries@celebcars.co.uk"; $Subject = "information request"; $Name = Trim(stripslashes($_POST['Name'])); $subject = Trim(stripslashes($_POST['subject'])); $comments = Trim(stripslashes($_POST['comments'])); // validation $validationOK=true; if (Trim($EmailFrom)=="") $validationOK=false; if (Trim($Name)=="") $validationOK=false; if (Trim($subject)=="") $validationOK=false; if (Trim($comments)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "subject: "; $Body .= $subject; $Body .= "\n"; $Body .= "comments: "; $Body .= $comments; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=thankyou.htm\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?>[/code]