Contact form sending user email from their own email?

Hey guys,
I have a contact form that send me an email of all the fields then sends the user a thank you email. I noticed that the second email is coming from the email address entered not mine. How can I switch this?

Change the from portion of the mail header.

Here is what I have for the responding email.

[php]$ip=$_SERVER[‘REMOTE_ADDR’];
$email_to = $_POST[“email”];
$email_subject = "Weekly Cash Giveaway | ";

$email_message1 = "Welcome!

Thank you for entering to win 50 dollars from the cash giveaway. Please check this email address later to see if your the lucky winner!

Sincerely,

";[/php]

That doesn’t say anything. How are you sending the email to all parties?

Sponsor our Newsletter | Privacy Policy | Terms of Service