• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

From header in php mail() being overwritten

jorfermo

Regular Pleskian
I'm trying to send email from a domain using code like this:

$email = "me@domain.com";
$from = "From: $email\r\n";
mail($receiver, $subject, $message, $from);

But i see in the mail logs that from address is being overwritten using the default user for the domain. Is there anyway to configure plesk or postfix to respect those headers?

Thx!
 
I found that adding "-f $receiver" as last parameter of mail() function makes it work.

But why the headers are not working?
 
Back
Top