[wp-trac] [WordPress Trac] #64368: `Could not instantiate mail function` errors sending mail in 6.9
WordPress Trac
noreply at wordpress.org
Tue Dec 9 21:49:14 UTC 2025
#64368: `Could not instantiate mail function` errors sending mail in 6.9
--------------------------+-----------------------
Reporter: desrosj | Owner: SirLouen
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9.1
Component: Mail | Version: 6.9
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Description changed by dmsnell:
Old description:
> There have been some reports of `wp_mail()` failing to send emails after
> upgrading to 6.9. This was
> [https://www.reddit.com/r/Wordpress/comments/1pdu68r/wordpress_doesnt_send_emails_after_69_update/
> first spotted on the `r/Wordpress` subreddit], but there have been a few
> other reports since (#64367 here on Trac).
>
> The culprit seems to be [61010] which solves #49687. Reverting that
> specific change (or downgrading to 6.8.3) has fixed the problem for every
> tester so far.
>
> Because #49687 is a closed ticket on a completed milestone, this is being
> created to track this bug and eventually reference in any commits that
> are deemed necessary (if any at all).
>
> The discussion about the problem begins at in the previous ticket with
> ticket:49687#comment:44. While it's worth reading through that
> conversation, here are some notes from the discussion so far:
> - The issue mentioned as a possible problem in ticket:49687#23 seems like
> it could be causing these issues.
> - Including `-f` when setting `sendmail_from` is bad practice, but is a
> widespread misunderstanding due to upstream documentation in PHP. An
> [https://github.com/php/php-src/issues/20648 upstream ticket in] `php-
> src` has been opened to address this.
> - While `-f` is not supposed to be passed to
> `php_admin_value[sendmail_path]`, using `php_admin_value[sendmail_from]`
> does not seem to work as expected for some in Linux environments using
> Postfix with Sendmail compatibility interface.
New description:
There have been some reports of `wp_mail()` failing to send emails after
upgrading to 6.9. This was
[https://www.reddit.com/r/Wordpress/comments/1pdu68r/wordpress_doesnt_send_emails_after_69_update/
first spotted on the `r/Wordpress` subreddit], but there have been a few
other reports since (#64367 here on Trac).
The culprit seems to be [61010] which solves #49687. Reverting that
specific change (or downgrading to 6.8.3) has fixed the problem for every
tester so far.
Because #49687 is a closed ticket on a completed milestone, this is being
created to track this bug and eventually reference in any commits that are
deemed necessary (if any at all).
The discussion about the problem begins at in the previous ticket with
ticket:49687#comment:44. While it's worth reading through that
conversation, here are some notes from the discussion so far:
- The issue mentioned as a possible problem in ticket:49687#23 seems like
it could be causing these issues.
- Including `-f` when setting `sendmail_from` is bad practice, but is a
widespread misunderstanding due to upstream documentation in PHP. An
[https://github.com/php/php-src/issues/20648 upstream ticket in] `php-src`
has been opened to address this.
- While `-f` is not supposed to be passed to
`php_admin_value[sendmail_path]`, using `php_admin_value[sendmail_from]`
does not seem to work as expected for some in Linux environments using
Postfix with Sendmail compatibility interface.
== Upstream work
- Remove PHP manual page’s example with `-f` [https://github.com/php/php-
src/issues/20648 PHP#20648]
- Report for `PHPMailer` on issue
[https://github.com/PHPMailer/PHPMailer/issues/3281 PHPMailer#3281]
- Report for `PHPMailer` for `-f` issue?
[https://github.com/PHPMailer/PHPMailer/issues/3282 PHPMailer#3282]
- `PHPMailer` patch to avoid double-adding `-f`
[https://github.com/PHPMailer/PHPMailer/pull/3283 PHPMailer#3283]
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64368#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list