Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #64368, comment 8


Ignore:
Timestamp:
12/06/2025 05:47:05 PM (6 months ago)
Author:
SirLouen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64368, comment 8

    v1 v2  
    1 I've found the solution to this problem. After reviewing Sendmail and PHP code, I was trying to understand how the Sender processing was being done, as it made no sense to me (plus the `sendmail_from` thing). I thought that the problem was that it was adding a `sendmail_from` but this was irrelevant. It's true that having a `sendmail_from` set up, will set it as the Sender envelop but not because of PHP default behaviour but a PHPMailer casuistry that is not relevant to this specific problem (and goes behind the default set of `setFrom`, this is why @jamieburchell could not see any changes when setting this `sendmail_from` in his server, as the From address takes precedence unless explicitly set in `$phpmailer->Sender`)
     1I've found the solution to this problem. After reviewing Sendmail and PHP-src code, I was trying to understand how the Sender processing was being done, as it made no sense to me (plus the `sendmail_from` thing). I thought that the problem was that it was adding a `sendmail_from` but this was irrelevant. It's true that having a `sendmail_from` set up, will set it as the Sender envelop but not because of PHP default behaviour but a PHPMailer casuistry that is not relevant to this specific problem (and goes behind the default set of `setFrom`, this is why @jamieburchell could not see any changes when setting this `sendmail_from` in his server, as the From address takes precedence unless explicitly set in `$phpmailer->Sender`)
    22
    33The thing is that all issues fall into PHPMailer: it was basically double-setting the `-f` parameter if the `sendmail_path` was set (as many had, and as it is a recommendation by the PHP docs).