• Resolved mihannsell

    (@mihannsell)


    This error is flooding my error logs: ‘Postman: wp_mail has been declared by another plugin…’

    I checked all the plugins and theme and there are THREE declarations of wp_mail() function. ONE in pluggable.php and the other TWO within your plugin.

    first – wp-content/plugins/post-smtp/Postman/extra/no-localhost-mails.php

    second – wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mihannsell,

    I hope you are doing well.

    Functions present in wp-includes/pluggable.php are Pluggable and can be overridden, Post SMTP is doing it to implement SMTPs.This file wp-includes/pluggable.php contains the wp_mail function, Post SMTP is overriding it, Loading file wp-includes/pluggable.php or wp_mail before Post SMTP declares wp_mail won’t let Post SMTP work

    Thanks and regards,
    Support Team – WPExperts

    Thread Starter mihannsell

    (@mihannsell)

    Hey man…

    here you asked me to start a new thread: https://wordpress.org/support/topic/after-latest-update-postman-wp_mail-has-been-declared-by-another-plugin/

    So I did, and your response is just copy-paste.

    Could you pls elaborate a bit more?

    Plugin Author Saad Iqbal

    (@saadiqbal)

    Hi @mihannsell ,

    Hope you are doing well. Just for your information, “no-localhost-mails.php” is not included at the moment and is in extras. So technically there is only single declaration by POST SMTP.

    Also, if your emails are working fine, you can ignore this error in the logs.

    Still do let us know if there is any question or confusion we can help you with.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Postman: wp_mail has been declared by another plugin’ is closed to new replies.