I'm trying to send email from a domain using code like this:
$email = "[email protected]";
$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!
$email = "[email protected]";
$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!