[wp-trac] [WordPress Trac] #64368: `Could not instantiate mail function` errors sending mail in 6.9

WordPress Trac noreply at wordpress.org
Fri Jan 9 17:16:28 UTC 2026


#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:  has-patch     |     Focuses:
--------------------------+-----------------------

Comment (by abdullah2019):

 Replying to [comment:36 SirLouen]:
 > Replying to @zoe20
 > > Is there any temporary workaround or patch available that resolves
 this issue while staying on WP 6.9?
 >
 > Yes, if you can add this code in a plugin or `functions.php`
 >
 > {{{#!php
 > add_action( 'phpmailer_init', static function ( $phpmailer ) {
 >         $phpmailer->Sender = '';
 > } );
 > }}}
 >
 > Once 6.9.1 is released, you can remove it.
 >
 > Replying to [comment:35 jorbin]:
 > > @SirLouen A single commit can close multiple tickets. As this is the
 one people are being directed to, it shouldn't be closed until a fix has
 been committed.
 >
 > Yes, my intention was that: open a ticket in the External Libraries
 component for the PHPMailer upgrade and once fixed, close all. Anyway, if
 we cannot make it in time, we will need to push
 [https://github.com/WordPress/wordpress-develop/pull/10613 this patch for
 6.9.1] as a temporary fix. This is why I was not planning to close this
 (just added the `close` tag). 👍
 >
 > But personally I would prefer to keep PHPMailer in a separate ticket,
 because it will be including several more things than just this fix (also,
 it's more traceable when doing Google queries and that).

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


More information about the wp-trac mailing list