1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

change email sender mail

Discussion in 'Plesk for Linux - 8.x and Older' started by fredalva, Jan 25, 2006.

  1. fredalva

    fredalva Guest

    0
     
    Hi , i use php mail to send automatique mail to my customer but the post mail they received is style by root@ik46454.ikexpress.com

    How can i change this?
    thanks

    excuse my english,i am french
     
  2. jwdick

    jwdick Guest

    0
     
    The PHP mail() function uses this format:

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

    Your return email address is equal to $email
    The address you are sending to is equal to $to

    build your list in this format:

    $subject = "Subject of email\r\n";
    $message = "Message body\r\n";
    $from= "From: $email\r\n";
    $from .= $Reply-To: $email\r\n";
    mail( $to, $subject, $message, $from);

    Hope this helps
     
Loading...