I am using a simple HTML form for an event registration and I would like to send a PHP confirmation email to the registrant with the same information that is going to the administrator.
Here are the details:
$emailFromName = $_POST['name'];
$emailFrom = $_POST['email'];
$emailFromPhone = $_POST['phone'];
I would like to use the value from $emailFrom in the following email address to:
$emailTo = "name@domain.com", \"$emailFrom\";
edit: Added new configuration:
$emailHeaders = 'From: "Conference" <noreply@conference.org>' . 'CC: . $emailFrom .';
This obviously doesn’t work, but you get the idea of what I am trying to.
Thanks!
You will need to add headers to the
mailfunction…for example:
and then
References: