---
title: "wp_mail has been declared by another plugin or theme"
id: "32853"
type: "post"
slug: "wp_mail-has-been-declared-by-another-plugin-or-theme"
published_at: "2019-02-07T13:14:40+00:00"
modified_at: "2026-03-11T08:32:16+00:00"
url: "https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme/"
markdown_url: "https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme.md"
excerpt: "Hi, Many support tickets to the Post SMTP plugin opened because of the error in the title. Quick intro: WordPress allows me as a developer to overwrite the internal mailing flow managed by a function called: wp_mail. this function and..."
taxonomy_category:
  - "Troubleshooting"
---

## Post SMTP Blog

Tutorials and expert advice to improve WordPress email deliverability.

# wp_mail has been declared by another plugin or theme

### by **[Editorial Team](https://postmansmtp.com/author/editorial-team/)**

###### February 7, 2019

###### SUMMARIZE:

[https://chatgpt.com?q=visist+https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme/+and+summarize%20this%20blog%20post%20for%20me](https://chatgpt.com?q=visist+https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme/+and+summarize%20this%20blog%20post%20for%20me)
### ChatGPT

[https://perplexity.ai/search?q=visist+https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme/+and+summarize%20this%20blog%20post%20for%20me](https://perplexity.ai/search?q=visist+https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme/+and+summarize%20this%20blog%20post%20for%20me)
### Perplexity

[https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme.md](https://postmansmtp.com/wp_mail-has-been-declared-by-another-plugin-or-theme.md)
### View Markdown

In This Article

1. [Quick intro:](#quick-intro)
2. [The problem:](#the-problem)
3. [How to solve?](#how-to-solve)

Hi,

Many support tickets to the Post SMTP plugin opened because of the error in the title.

## Quick intro:

WordPress allows me as a developer to overwrite the internal mailing flow managed by a function called: wp_mail.  
 this function and a lot more like her (that can be overwritten) are inside a file called: pluggable.php.

## The problem:

The file is included by WordPress in a specific event, and then you call each function as you want.  
 Many less knowledgable plugin developers try to call to a function in the file on a wrong time and getting an error message.  
 what do they do? instead of investigating and fix them self they doing a “hack” and including the file in each time they getting the error – BAD!!!

Because of the above when I try to overwrite the function, the file already included from one to many times causing a big conflict.

## How to solve?

Disable one plugin each time until the message disappears, now you know the problematic plugin, and can decide what to do next: contact the plugin developer, find another one, etc …

[https://postmansmtp.com/pricing/](https://postmansmtp.com/pricing/)

### Get productivity tips delivered straight to your inbox

Join **125,000+** WordPress users who get our weekly newsletter with insider WordPress tips!

## Fix Your WordPress Email Delivery Issues with Post SMTP

[Get POST SMTP Now](https://postmansmtp.com/pricing/)
