• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

change email sender mail

F

fredalva

Guest
Hi , i use php mail to send automatique mail to my customer but the post mail they received is style by [email protected]

How can i change this?
thanks

excuse my english,i am french
 
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
 
Back
Top