bomsn
By:
bomsn

Fatal error: Uncaught phpmailerException

September 10, 2016 780 views
WordPress Email PHP Apache Arch Linux

I'm using woocommerce, and other plugins to allow users to add product, when a user add a new product, the server fails somehow in sending notification and shows this:

 Fatal error: Uncaught phpmailerException: Invalid address: in /srv/users/serverpilot/apps/xxxx/public/wp-includes/class-phpmailer.php:946 Stack trace: #0 /srv/users/serverpilot/apps/wordpressthm/public/wp-includes/pluggable.php(352): PHPMailer->setFrom('', 'OneSocial', false) #1 /srv/users/serverpilot/apps/xxxx/public/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(466): wp_mail('test@hot...', '[Test Product...', '<!DOCTYPE html>...', Array, Array) #2 /srv/users/serverpilot/apps/xxxx/public/wp-content/plugins/wc-vendors/classes/admin/emails/class-wc-notify-admin.php(81): WC_Email->send('jeremyrupke@hot...', '[The Hockey Mov...', '<!DOCTYPE html>...', 'Content-Type: t...', Array) #3 /srv/users/serverpilot/apps/xxxx/public/wp-content/plugins/wc-vendors/classes/admin/emails/class-emails.php(40): WC_Email_Notify_Admin->trigger('', Object(WP_Post)) #4 /srv/users/serverpilot/apps/xxxx/public/wp-includes/plugin.php(524): WCV_Emails->trigger_new_product('pending' in /srv/users/serverpilot/apps/xxxx/public/wp-includes/class-phpmailer.php on line 946
1 Answer

This error seems to indicate that no From email address is being set when the system attempts to send an email here:

PHPMailer->setFrom('', 'OneSocial', false)

I would guess that you may need to set a from email address for emails sent from WooCommerce.

Are other emails from your woocommerce installation being sent properly?

Have another answer? Share your knowledge.