[wp-trac] [WordPress Trac] #49687: wp_mail() - Why is no envelope sender defined?

WordPress Trac noreply at wordpress.org
Sat Aug 9 16:22:04 UTC 2025


#49687: wp_mail() - Why is no envelope sender defined?
-------------------------------------+------------------------------
 Reporter:  vbbp                     |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Mail                     |     Version:  5.4
 Severity:  major                    |  Resolution:
 Keywords:  has-test-info has-patch  |     Focuses:
-------------------------------------+------------------------------

Comment (by siliconforks):

 Replying to [comment:28 SirLouen]:
 > Still setting in the `sendmail_path` the `-f` is a wrong practice.

 To clarify: I'm not actually advocating the use of the `-f` option in the
 `sendmail_path` setting.

 That having been said ... it does seem to be a common practice, for
 whatever reason.  You can find examples all over the internet of people
 getting bitten by this:

 https://mantisbt.org/forums/viewtopic.php?t=24647
 https://github.com/magento/magento2/issues/20033#issuecomment-532289611
 https://bugs.php.net/bug.php?id=53984
 https://github.com/bcit-ci/CodeIgniter/issues/4343
 https://forum.joomla.org/viewtopic.php?f=622&t=727375
 https://www.vmayo.com/docs/fixed-phpmailer-smtp-error-could-not-connect-
 to-smtp-host-2/#11-toc-title
 ... and so on ...

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49687#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list