Hi,
I have what I thought was a simple question until I started looking it up. I would like the 'from' & 'to' email addresses to be the same in the email header. When you receive an email, the From & To addresses are not editable. I want the same address to show up in both places.
this was the last thing i tried. didn't work. then i started reading about Exim specifications (?), then my brain exploded. 🙂
if(count($error_msg)===0) //if there are no error messages
{
//prepare for sending email - short cut vars
$from = EMAIL; //set from email
$headers = "From:" . $from; //place from emaiol in header
$destination = EMAIL; //destination email in config
$subject = 'Contacting Bruce at Focus Financial'; //subject
$body = "$name \n $email \n $message"; //email body
if(mail($headers, $destination, $subject, $body)) //if mail works
{
header('Location:thankyou.php');
}
else
{
header('Location:messagenotsent.php');
}
so, this i where i'm at now. really appreciate any help given. thank you so much and have a great day!
Lisa 😉