wpsnoop Fatal error: Cannot redeclare wp_mail()

If you are dealing with a WordPress issue where a PHP Function wp_mail() was already declared it is most likely due to a plugin/theme conflict.

wpsnoop scanned and analyzed over 100,000 WordPress plugins and themes to find and locate potential conflicts including functions that share the same name.

This page has information on the 45 places where that function is declared and used in WordPress plugins and themes.

Note: Our database currently only taps into the free themes and plugins available in the publicly available WordPress plugins and themes, if your site uses paid plugins, themes or custom code there may be additional conflicts.


Our database has uncovered 45 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/smtpcom/admin/mail-api.php:12)

This file is part of the WordPress plugin SMTP.com and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/simple-ses-mail/simple-aws-ses-mail.php:26)

This file is part of the WordPress plugin Simple AWS SES Mail and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/jannes-mannes-appmail/lib/appmail-wp-mail.php:22)

This file is part of the WordPress plugin Jannes & Mannes AppMail and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/blastex/blastex.php:155)

This file is part of the WordPress plugin Blastex Plugin and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/wp-mail-rest-api/wp-mail-rest-api.php:527)

This file is part of the WordPress plugin WP MAIL REST-API and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/wp-mail-ses/functions.php:9)

This file is part of the WordPress plugin WP Mail SES and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/fluent-smtp/fluent-smtp.php:38)

This file is part of the WordPress plugin FluentSMTP and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/mail-deactivation/mail-deactivation.php:29)

This file is part of the WordPress plugin Mail Deactivation and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/wp-sendgrid/includes/wp-mail.php:36)

This file is part of the WordPress plugin WP SendGrid and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/mail-integration-365/mail_integration_365.php:56)

This file is part of the WordPress plugin Mail Integration for Office 365/Outlook and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/textme/textme.php:30)

This file is part of the WordPress plugin TextMe and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/wp-phpmailer/wp-phpmailer.php:108)

This file is part of the WordPress plugin wpPHPMailer and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/mail-queues/pbci-mail.php:2386)

This file is part of the WordPress plugin Mail Queues by PBCI and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/aws-ses-for-wp/ses-for-wordpress.php:270)

This file is part of the WordPress plugin SES for WordPress and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/wp-easy-mail-for-ses/class-wp-easy-mail-ses.php:89)

This file is part of the WordPress plugin WP Easy mail for SES and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/upi-crm-universal-crm-solution/functions.php:549)

This file is part of the WordPress plugin UpiCRM - Lead Management and Contact Form DB for all forms. and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/smime/smime.php:31)

This file is part of the WordPress plugin S/MIME Enabled e-mail and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/xmail-the-right-way/xmail.php:369)

This file is part of the WordPress plugin Xmail - The Right Way and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/et-mailing/inc/aem-override-function.php:22)

This file is part of the WordPress plugin ET Mailing and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/zoho-mail/zohoMail.php:415)

This file is part of the WordPress plugin Zoho Mail and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/expire-password/pluggable.php:271)

This file is part of the WordPress plugin PassExpire and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/hectane/hectane.php:76)

This file is part of the WordPress plugin Hectane and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/power-forms-builder/admin/partials/class-power-forms-mailer.php:299)

This file is part of the WordPress plugin Power Forms Builder and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/sakshamapp-es-email-system-for-transaction-email/index.php:228)

This file is part of the WordPress plugin Sakshamapp ES email system for transaction email and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/connect-sendgrid-for-emails/lib/sendgrid/sendgrid-wp-mail.php:39)

This file is part of the WordPress plugin Connect SendGrid for Emails and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/xpertmailer-advanced-php-mail-engine/XPM4.php:14)

This file is part of the WordPress plugin XPertMailer and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/cimy-swift-smtp/swift_engine.php:5)

This file is part of the WordPress plugin Cimy Swift SMTP and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/go-cannon/go-cannon.php:30)

This file is part of the WordPress plugin go-cannon and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/disable-email/disable_email.php:139)

This file is part of the WordPress plugin Disable Email and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/socketlabs/socketlabs.php:105)

This file is part of the WordPress plugin SocketLabs and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/disable-emails/includes/bootstrap.php:17)

This file is part of the WordPress plugin Disable Emails and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/enhanced-emails/pluggable.php:46)

This file is part of the WordPress plugin Enhanced Emails and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/ninjalibs-ses/ninjalibs-ses.php:157)

This file is part of the WordPress plugin Ninja Libs SES and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php:113)

This file is part of the WordPress plugin Post SMTP and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/transmail/transMail.php:268)

This file is part of the WordPress plugin ZeptoMail and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/bigsendgrid/BigMailer.php:61)

This file is part of the WordPress plugin Big Mailer - SendGrid and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/postman-smtp/Postman/PostmanWpMailBinder.php:100)

This file is part of the WordPress plugin Postman SMTP and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-wp-mail.php:39)

This file is part of the WordPress plugin SendGrid and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/postmark/wp-postmark.php:93)

This file is part of the WordPress plugin Postmark and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/email-read-notify-track-log/Email-Read-Notify-Track-and-Log.php:41)

This file is part of the WordPress plugin Email Read Notify Track & Log and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/pepipost/wp-pepipost.php:340)

This file is part of the WordPress plugin Wp-Pepipost and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/wordpress-22-mailfix/wp_mailfix.php:15)

This file is part of the WordPress plugin Wordpress 2.2 Mailfix and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/postmarkapp-mail-replacement/postmarkmail.php:84)

This file is part of the WordPress plugin PostMarkApp Mail Replacement and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/smtp-king-pro/includes/admin_area.php:20)

This file is part of the WordPress plugin SMTP King Pro and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare wp_mail() (previously declared in wp-content/plugins/smtp-mailing-queue/smtp-mailing-queue.php:51)

This file is part of the WordPress plugin SMTP Mailing Queue and could be interacting with another theme or plugin and causing a fatal error.

The error occurs because two (or more) plugins that you are using are both trying to declare a function with the same name.