Support » Plugin: Postman SMTP Mailer/Email Log » Postman: wp_mail has been declared by another plugin or theme, so you won’t be a

  • Not sure what’s going on here, as this post develops it’s either a cry for help or a heads up.

    I got the message in my 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.

    Following your hints, found

    WordPress wp_mail Filter(s): wp_staticize_emoji_for_email

    removed, no effect. Message in error log, test successful. Diagnostics show;

    OS: Linux zeus3.easy-internet.co.uk 2.6.32-604.30.3.lve1.3.63.el6.x86_64 #1 SMP Sun Sep 27 06:34:10 EDT 2015 x86_64
    PHP: Linux 5.5.25 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes
    WordPress: 4.3.6 en_US UTF-8
    WordPress Theme: ala
    WordPress Plugins: Advanced Custom Fields Pro, Akismet, Contact Form 7 – Dynamic Text Extension, Contact Form 7, Enable Media Replace, Hello Dolly, iLightBox, Postman SMTP, Simple Custom Post Order, WordPress Database Backup, WP Image Size Limit
    WordPress wp_mail Filter(s):
    WordPress phpmailer_init Action(s): wpcf7_phpmailer_init
    Postman: 1.7.2
    Postman Sender Domain (Envelope|Message): actionlearningassociates.co.uk | actionlearningassociates.co.uk
    Postman Prevent Message Sender Override (Email|Name): No | No
    Postman Active Transport: SMTP (smtp:none:plain://mail.actionlearningassociates.co.uk:26)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 0 | 0

    Any ideas?

    A further question would be; Why does the test email send successfully and then Postman fail on a Contact Form 7 submission?

    • This topic was modified 4 years, 6 months ago by chrispink.
    • This topic was modified 4 years, 6 months ago by chrispink.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chrispink

    (@chrispink)

    Further to this;
    Following a discussion on StackExchange;
    http://wordpress.stackexchange.com/questions/236193/contact-form-7-wp-mail-doesnt-work-after-update-to-4-6/236206

    patched pluggable.php

    I now do not have the error message but Postman is still not working with Contact Form 7

    Diagnostic:
    No entry in Postman log
    Nothing in error log
    Test successful
    Contact Form 7 still not sending to external address

    • This reply was modified 4 years, 6 months ago by chrispink.
    Thread Starter chrispink

    (@chrispink)

    Please explain this error message;
    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.

    wp_mail is declared by core.
    It is used by Contact Form 7 (amongst others)

    So I don’t understand what your error message is telling me.

    Thread Starter chrispink

    (@chrispink)

    So my problem at the moment seems to be;

    Postman is working: sends test message.
    It does nothing with Contact Form 7 5.1

    • This reply was modified 4 years, 6 months ago by chrispink.
    Thread Starter chrispink

    (@chrispink)

    OK, good news and bad news.

    Good news is I’m sending emails now using a round about way of replacing PHP mail() with SMTP service by manipulating PHPmailer using this code;

    add_action( ‘phpmailer_init’, ‘wizcom_phpmailer_init’ );
    function wizcom_phpmailer_init( PHPMailer $phpmailer ) {
    $phpmailer->Host = ‘mail.actionlearningassociates.co.uk’;
    $phpmailer->Port = 25; // could be different
    $phpmailer->Username = ‘info@actionlearningassociates.co.uk’; // if required
    $phpmailer->Password = ‘#DUX5201eve’; // if required
    $phpmailer->SMTPAuth = true; // if required
    // $phpmailer->SMTPSecure = ‘ssl’; // enable if required, ‘tls’ is another possible value

    $phpmailer->IsSMTP();
    }

    Article here;http://wordpress.stackexchange.com/questions/75956/whats-the-easiest-way-to-setup-smtp-settings-programmatically

    My understanding is that this is what Postman should have been doing. So the bad news is that Postman won’t do this when Contact Form 7 is being used. Although it is, apparently doing it when it’s test email is sent.

    But why not, surely in some way this what Postman SMTP is/should be doing?
    Who owns this problem Postman SMTP? or Contact Form 7?

    • This reply was modified 4 years, 6 months ago by chrispink.
    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Please explain this error message;
    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.

    Hello Chris.

    wp_mail is a WordPress function to allow WordPress, themes and plugins to send email.

    WordPress provides a default implementation of wp_mail. But WordPress allows email plugins (like Postman) to provide an alternate implementation of wp_mail.

    This message is Postman telling you that some other plugin beat it to the punch. Only one plugin may handle email delivery. However, you may also see this error if any plugin on your system directly includes the file pluggable.php – a lazy hack some plugin developers use to access WordPress code/libraries.

    patched pluggable.php

    I now do not have the error message but Postman is still not working with Contact Form 7

    Diagnostic:
    No entry in Postman log
    Nothing in error log
    Test successful
    Contact Form 7 still not sending to external address

    Patching pluggable.php is definitely not the recommended solution; removing the conflicting plugin is.

    Having said that though, it appears your problem is related to Contact Form 7. If Contact Form 7 and Postman were talking, you would see the activity in Postman’s log file.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Good news is I’m sending emails now using a round about way of replacing PHP mail() with SMTP service by manipulating PHPmailer using this code;

    My understanding is that this is what Postman should have been doing. So the bad news is that Postman won’t do this when Contact Form 7 is being used. Although it is, apparently doing it when it’s test email is sent.

    But why not, surely in some way this what Postman SMTP is/should be doing?
    Who owns this problem Postman SMTP? or Contact Form 7?

    Postman does not manipulate PHPmailer; Postman actually replaces PHPmailer with zend_mail. This is why Postman is able to offer OAuth 2.0.

    Sounds like Postman’s original warning was correct then; there is another plugin preventing Postman from taking over wp_mail.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Postman: wp_mail has been declared by another plugin or theme, so you won’t be a’ is closed to new replies.