Title: wp_mail already declared error
Last modified: March 4, 2022

---

# wp_mail already declared error

 *  [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/wp_mail-already-declared-error/)
 * Lots of errors showing up in error log:
 *  FATAL Postman: Postman: wp_mail has been declared by another plugin or theme,
   so you won’t be able to use Postman until the conflict is resolved” while reading
   response header from upstream,
 * Grepping “function wp_mail” from wp-content/themes | plugins found nothing, just
   the definition from post-smtp (this plugin) itself.
 * Is this a bug?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * (@arsalantariq)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/wp_mail-already-declared-error/#post-15425045)
 * Hi [@wpshushu](https://wordpress.org/support/users/wpshushu/)
 * Hope you are doing good.
 * Can you please share email logs here ?
 * is there any issue are you facing? let me know more details
 * thanks
 *  Thread Starter [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/wp_mail-already-declared-error/#post-15425119)
 * [@arsalantariq](https://wordpress.org/support/users/arsalantariq/) In email logs,
   all emails are marked as “sent”. So far not seeing other issues.
 *  [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * (@arsalantariq)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/wp_mail-already-declared-error/#post-15425210)
 * [@wpshushu](https://wordpress.org/support/users/wpshushu/)
 * ok let me look into this, will reproduce this on my test website and fix it soon.
 * Thanks
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wp_mail-already-declared-error/#post-15736345)
 * [@wpshushu](https://wordpress.org/support/users/wpshushu/)
 * Kindly update the plugin to this version 2.1.1, this may resolve the issue.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp_mail already declared error’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/wp_mail-already-declared-error/#post-15736345)
 * Status: not resolved