[wp-trac] [WordPress Trac] #49687: wp_mail() - Why is no envelope sender defined?
WordPress Trac
noreply at wordpress.org
Sat Aug 9 15:42:03 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 SirLouen):
The question i'm thinking is: why you are adding to the `sendmail_path`
the `-f`?
Technically you should only configure something like:
{{{
sendmail_path = "/srv/fakesendmail/fakesendmail.sh"
sendmail_from = "php.ini at example.test"
}}}
The `sendmail_path` is used
[https://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path to
specify the path] with arguments without the `from`. If you add the `-f`
there you are screwing everything up.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49687#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list