Formatting mail() headers "prettier"

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello all,

Given the following code:

    $to = 'myemail@emaildomain.nuts';
    $subject = 'This is my subject';
    $message = 'This is my email message.';
    $headers = "From: $Email\r\nReply-To: $Email\r\n";

    mail($to, $subject, $message, $headers);

I only get the email address in the recipient inbox From: or Sender:

I am trying to provide the mail() function with the properly formatted
headers to get an outcome of "FirstName LastName" appearing in
recipient's Sender: or From: column in their inbox.

Any help from anyone who has tackled this one before would be greatly

Thanks all,

Gene Kelley

Re: Formatting mail() headers "prettier"

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline