Setting the RFC5321.FROM/envelope sender in PHPMailer::setFrom()
-
Setting the last parameter of
PHPMailer::setFrom()
tofalse
stops PHPMailer setting the Sender/envelope/RFC5321.FROM header so that it matches the mail From header.This often will cause a situation where an email is sent from php-fpm@hostname or similar. For best deliverability, the envelope sender should match the mail from address.
Although this can be set in PHP configuration with the
-f
parameter tosendmail
, I’m curious whywp_mail
explicitly prevents it from being set?Jamie
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Setting the RFC5321.FROM/envelope sender in PHPMailer::setFrom()’ is closed to new replies.