[wp-trac] [WordPress Trac] #57241: PHPMailer error

WordPress Trac noreply at wordpress.org
Thu Dec 1 10:13:25 UTC 2022


#57241: PHPMailer error
--------------------------+-----------------------------
 Reporter:  CyberCr33p    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Mail          |    Version:  6.1.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When mail() function is disabled, during a new WordPress 6.1.1
 installation but also when I try to add a new user I get this error:

 {{{
 Fatal error: Uncaught Error: Call to undefined function
 PHPMailer\PHPMailer\mail() in /home/www/user/example.net/www/wp-
 includes/PHPMailer/PHPMailer.php:874 Stack trace: #0
 /home/www/user/example.net/www/wp-includes/PHPMailer/PHPMailer.php(1945):
 PHPMailer\PHPMailer\PHPMailer->mailPassthru('chris at cretaforc...', '[test]
 New User...', 'New user regist...', 'Date: Thu, 1 De...', NULL) #1
 /home/www/user/example.net/www/wp-includes/PHPMailer/PHPMailer.php(1666):
 PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Thu, 1 De...', 'New user
 regist...') #2 /home/www/user/example.net/www/wp-
 includes/PHPMailer/PHPMailer.php(1502):
 PHPMailer\PHPMailer\PHPMailer->postSend() #3
 /home/www/user/example.net/www/wp-includes/pluggable.php(542):
 PHPMailer\PHPMailer\PHPMailer->send() #4 /home/www/user/example.net/www
 /wp-includes/pluggable.php(2159): wp_mail(Array, '[test] New User...',
 'New user regist...', Array) #5 /home/www/user/example.net/www/wp-
 includes/user.php(3439): wp_new_user_notification(4, NULL, 'admin') #6
 /home/www/user/example.net/www/wp-includes/class-wp-hook.php(308):
 wp_send_new_user_notifications(4, 'admin') #7
 /home/www/user/example.net/www/wp-includes/class-wp-hook.php(332):
 WP_Hook->apply_filters('', Array) #8 /home/www/user/example.net/www/wp-
 includes/plugin.php(517): WP_Hook->do_action(Array) #9
 /home/www/user/example.net/www/wp-admin/includes/user.php(241):
 do_action('edit_user_creat...', 4, 'admin') #10
 /home/www/user/example.net/www/wp-admin/user-new.php(195): edit_user() #11
 {main} thrown in /home/www/user/example.net/www/wp-
 includes/PHPMailer/PHPMailer.php on line 874
 }}}

 This issue doesn't exist with PHP 7.4.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57241>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list