Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #49687, comment 46


Ignore:
Timestamp:
12/05/2025 12:33:37 AM (6 months ago)
Author:
SirLouen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49687, comment 46

    v3 v4  
    2121If the user has the `sendmail_from` set in his `php.ini`, PHPMailer should overwrite it. But if they are forcing the `-f` in the `sendmail_path` this is a complete misconfiguration of the server (because for this purpose, there is a `sendmail_from`).
    2222
    23 The reality is that the problem comes, when people have forced their `sendmail` binary `from` for whatever reason. In this case, now two `From` addresses will be conflicting. Anyone who could have had troubles with the missing `Sender` address because of this bug, shouldn't have been using the default `wp_mail` behaviour if they pretended to add `-f` enabled in their sendmail. I understand that the Mail component has been a little abandoned for years and people were resorting to whatever worked the best. But instead, they should have switched to `isSendMail`. By disabling the `Sender` option here, the regular `mail` became too permissive and was enabling sending mails with regular `mail` wrongly (and this is not ideal according to the PHP docs).
     23The reality is that the problem comes, when people have forced their `sendmail` binary `from` for whatever reason. In this case, now two `From` addresses will be conflicting. Anyone who could have had troubles with the missing `Sender` address because of this bug, shouldn't have been using the default `wp_mail` behaviour if they pretended to add `-f` enabled in their sendmail. I understand that the Mail component has been a little abandoned for years and people were resorting to whatever worked the best. But instead, they should have switched to `isSendMail`. By having the `Sender` option disabled here because of [38286], the regular `isMail` became too permissive and was enabling sending mails with PHP `mail` function wrongly (and this is not ideal according to the PHP docs).
    2424
    2525Here there are two quick solutions: