Hi, I found an online php contact form which I love and works perfectly, AS LONG AS the email address I enter on the form (which the form uses to send the email from) is one that dreamhost recognizes (ie, one of mine that is hosted by Dreamhost). If I use my wife’s gmail address, the email never gets delivered. I believe this part of the php below which generates the email is what is causing problems, and I think that if I were able to change the sender to my address as opposed to the address that the user enters, it would work.
[php]// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
‘X-Mailer: PHP/’ . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
Can anyone tell me how to do that? If you need the rest of the code I can provide it. Please note that I am very inexperienced with php, I just copy and paste to make things work so please be specific in your answers thanks