• Resolved Uriahs Victor

    (@uriahs-victor)


    I keep getting this notice: https://prnt.sc/lzbGJ2aPbQ5C from your plugin and it’s creating entries in the error_log file on the server.

    This didn’t happen before(ive noticed it a while but cant remember in which update it started happening) I’ve not installed any new plugins that would introduce new calls to wp_mail.

    I use Ultimate Member which i assume makes use of wp_mail() to send emails to users who signup/reset password etc. I also have a custom plugin which takes input and sends out emails to users on the website, everything works fine with both, email sending works fine, because I assume Post SMTP takes over all email sending on the website.

    So if you simply call wp_mail() to send email, Post SMTP would be responsible for sending off the email.

    So what exactly is the issue here?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    Hi,

    Hope you are doing good.

    There will be a line of code in the WP Config file that may be added by any other plugin. This needs to be removed and then test.

    code needs to be removed.
    function wp_mail() {}

    Take a backup of your wp-config file then do.

    If you added any new plugins recently then try to reactive it and then check.

    Thanks

    Thread Starter Uriahs Victor

    (@uriahs-victor)

    @haseeb0001 There’s no line of code in my wp_config file like that, it’s all the usual wp_config info nothing about wp_mail

    Plugin Support M Haseeb

    (@haseeb0001)

    @uriahs-victor

    Okay, share the Post SMTP diagnostic test report.

    Thanks

    Thread Starter Uriahs Victor

    (@uriahs-victor)

    @haseeb0001 I replaced the info about the hostname but the rest of the details are directly from the report:

    Mailer: postsmtp
    HostName: example.com
    cURL Version: 7.71.0
    OpenSSL Version: OpenSSL/1.1.1p
    OS: Linux serverxxx.web-hosting.com 2.6.32-954.3.5.lve1.4.89.el6.x86_64 #1 SMP Sat May 7 10:18:11 UTC 2022 x86_64
    PHP: Linux 7.4.32 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
    WordPress: 6.0.3 en_US UTF-8
    WordPress Theme: Neve Child
    WordPress Plugins: Autoptimize, Better Font Awesome, Disable WP REST API, Easy Theme and Plugin Upgrades, Elementor, If Menu - Visibility control for menus, LiteSpeed Cache, MC4WP: Mailchimp for WordPress, Menu Icons, Ninja Forms - Conditional Logic, Ninja Forms - Layout & Styles, Ninja Forms - File Uploads, Ninja Forms, Post SMTP, Redirection, Report Builder for wpDataTables, Site Specific: Alter Menu Items, Site Specific: Example Core, Site Specific: Create User Box Number, Site Specific: Ultimate Member Plugin Tasks, Timeline Widget For Elementor, Ultimate Member, Ultimate Member - reCAPTCHA, Ultimate Member - Terms & Conditions, UpdraftPlus - Backup/Restore, User Switching, Wordfence Security, Yoast SEO, WP Crontrol, WP Umbrella, wpDataTables, WP Pusher
    WordPress wp_mail Owner: /home/skrarrpe/public_html/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php
    WordPress wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args
    WordPress wp_mail_from Filter(s): wordfence::fixWPMailFromAddress
    WordPress phpmailer_init Action(s): PostsmtpMailer->phpmailer_smtp_init
    Postman: 2.1.10
    Postman Sender Domain (Envelope|Message): example.com | example.com
    Postman Prevent Message Sender Override (Email|Name): Yes | Yes
    Postman Active Transport: SMTP (smtp:tls:crammd5://mail.smtp2go.com:587)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 12741 | 16937

    Hi @uriahs-victor,

    Can you recheck by deactivating Wordfence Plugin?

    Thank you

    Plugin Support M Haseeb

    (@haseeb0001)

    We haven’t heard from you, so we’ll mark this thread resolved. Feel free to open a new one if you need it.

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

The topic ‘wp_mail has been declared by another plugin’ is closed to new replies.