I am new to building a website and I am sorry if this question has been asked before. I tried finding an answer but I cant seem to pinpoint an answer for my specific problem. I have created a PHP script for my contact form on my website. I would like to add to this script an auto responder so that people that submit the form receive a confirmation/thank you email. The trouble I am having is finding the right code so that my email address shows-up at the top (the from field) of the auto reply email. At the moment the email address showing at the top (the from field) is some weird address of my web hosting company (iPage) instead of my email address.
Here is the code I am using to generate an auto reply. However, I am wondering, what must I add so that my email shows in the from field of the auto reply email?
/* Prepare autoresponder subject */
$respond_subject = "Email Confirmation";
/* Prepare autoresponder message */
$respond_message =
"Thank you for contacting jadesambrook.com!
We will do our best to answer your email as quickly as possible.
Best regards,
www.jadesambrook.com";
/* Send the message using mail() function */
mail($email, $respond_subject, $respond_message);