When I edited my PHP code to send a message, and a from field, the from field worked then the message didn’t. How could I have it so the message would be in the body of the email while working with the from field? Here is my code.
<?php
$headers = "Contact: ".$_POST['contact']."\r\n";
$headers .= "BCC: ".$_POST['email']."\r\n";
$headers .= "From: Your Company <your_company@example.com>\r\n";
mail("Your Memory", $thank_you,$headers, $message);
?>
Your parameters are messed up. The fifth parameter where you have
$mesageis supposed to be extra options passed to the SMTP server. Looks like you might intend to have$messagewhere you have$thank_you.