Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #49687, comment 46


Ignore:
Timestamp:
12/05/2025 12:18:16 AM (8 months ago)
Author:
SirLouen

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49687, comment 46

    v1 v2  
    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 their `sendmail` `from` already set up 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`. But since we were disabling the `Sender` option here, the regular `mail` was too permissive and was enabling sending mails with regular `mail` wrongly (this is not acceptable according to the PHP docs).
     23The reality is that the problem comes, when people have their `sendmail` `from` already set up 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).
    2424
    2525Here there are two quick solutions: