• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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