Jump to content

[SOLVED] Email Header


JSHINER

Recommended Posts

$header .= "From: [email protected]\r\n";
$mailresult  = mail($email,$subject,$message_body,$header);

 

The above code puts "[email protected]" in the email - how can I get it to put "The Name" instead of [email protected] - I tried The Name ([email protected]) but it did not work.

 

Also that puts a random space in the email above $message_body so the email sends as:

 

"

 

$message_body

"

 

How can I tighten it up?

 

 

Link to comment
https://forums.phpfreaks.com/topic/108869-solved-email-header/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.