Hi there
I’ve got a submit form on a website, but doesn’t have an email field. Usually, when I develop a form to send mail, I include the email as the $from_header. Like this :
$header = "From: " . $email;
mail("my@email.com", $subject, $body, $header);
But now, I want the name field to show in the From column… Like this :
$header = "From: " . $name;
mail("my@email.com", $subject, $body, $header);
but if I do that, it puts on this long “looks like an email address” after the name.
Hope you understand?
Please let me know how I can make only the senders name show in the email.
Thanks!