Report this

What is the reason for this report?

Fatal error: Uncaught phpmailerException

Posted on September 10, 2016

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


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.