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

WordPress Trac noreply at wordpress.org
Sun Dec 7 00:32:04 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:  close         |     Focuses:
--------------------------+-----------------------

Comment (by siliconforks):

 Replying to [comment:14 SirLouen]:
 > Not necessarily. If you have a `sendmail_path` set, it will also pick it
 for this purpose.

 OK, but if you have a `sendmail_path` set with `-f` in it, then won't you
 eventually end up with a command line with two `-f` options?  I don't see
 how that could possibly work.

 It seems like the only way you could get it to work would be something
 like this:

 {{{#!php
 <?php
 $phpmailer->isSendmail();
 $phpmailer->Sendmail = '/usr/sbin/sendmail';
 }}}

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


More information about the wp-trac mailing list