Support » Plugin: Post SMTP Mailer/Email Log » Email wont send after wp 5.5. update

  • Hi there.
    I’m using WP-mail function in my own plugin and using your SMTP plugin. My emails sent from my plugin fail after the WP 5.5 update today. My server provide this info:

    PHP Fatal error: Uncaught Error: Call to a member function getFromEmailAddress() on null in ….post-smtp/Postman/PostmanWpMail.php:165.

    please fix asap.
    Thanks

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author yehudah

    (@yehudah)

    Hi,

    What is your mailer method?

    Thread Starter alexga

    (@alexga)

    Here is the diagnostic.
    Mailer: postsmtp
    HostName: 3depo.com
    cURL Version: 7.29.0
    OpenSSL Version: NSS/3.44
    OS: Linux vps.somuchip.com 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64
    PHP: Linux 7.3.13 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes
    WordPress: 5.5 en_AU UTF-8
    WordPress Theme: threedepo
    WordPress Plugins: 3DEPO, Ultimate Addons for Visual Composer, WPBakery Page Builder, Post SMTP, WPS Hide Login
    WordPress wp_mail Owner: /home/admin/web/3depo.com/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 phpmailer_init Action(s): PostsmtpMailer->phpmailer_smtp_init
    Postman: 2.0.14
    Postman Sender Domain (Envelope|Message): 3depo.com | 3depo.com
    Postman Prevent Message Sender Override (Email|Name): No | No
    Postman Active Transport: SMTP (smtp:tls:login://vps.somuchip.com:587)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 129 | 0
    Postman Stealth Mode: Yes

    Plugin Author yehudah

    (@yehudah)

    This is strange, you don’t have a lot of plugins so no conflict here.

    strange request but can you go to settings and just press the save button?

    Thread Starter alexga

    (@alexga)

    Not sure what you mean. What save button you mean?

    So the test mail from the backend works on but all the emails in my own plugin example:

    wp_mail( $user[’email’], $subject, $message, $headers );

    these fail with the error I provided earlier.

    Very strange. Can you assist to find a solution?

    Plugin Author yehudah

    (@yehudah)

    Thread Starter alexga

    (@alexga)

    Ok. I’ve pressed save settings and nothing strange. All settings are saved. No error on the backend.

    My header array in the wp_mail function in my code has only ‘Content-Type: text/html; charset=UTF-8’,’BCC: ‘.$settings[’email_address’].”

    I think the issue is the FROM email is not parsed properly in your plugin by the getFromEmailAddress().

    Thread Starter alexga

    (@alexga)

    OK.. so the bug in your plugin is that it cannot override the FROM email.

    I’ve added FROM: email <test@test.com> to my wp_mail header and the mail gets sent perfect.

    Can you please check and fix the FROM override so it works with WP5.5. Thanks

    Thread Starter alexga

    (@alexga)

    Update…Adding the FROM in the WP_mail header works when sending emails from backend but not for sending emails on frontend. Strange…

    Plugin Author yehudah

    (@yehudah)

    Regular emails like new user register, comments, etc… Working?

    Thread Starter alexga

    (@alexga)

    I don’t have user registration just some special types of emails in my own plugin. AS mentioned I simply use the WP_Mail function, nothing fancy.

    Thread Starter alexga

    (@alexga)

    I’ve removed the plugin for now. The built in WP mailer works ok. Let me know when you’ve resolved the issue.
    Thanks.

    Plugin Author yehudah

    (@yehudah)

    Sure

    Thread Starter alexga

    (@alexga)

    I have another website and has similar issues. The FROM email address in the SMTP plugin is ignored and the WP email (Administration Email Address) is used instead. Maybe this will give you an idea where the issue may be.

    Thread Starter alexga

    (@alexga)

    Sorry but issue remains in version 2.0.15

    I was having the same error using BBQ Firewall. Changing the mailer type from PostSMTP to PHPMailer in the Account tab seems to fix it (for me at least, using SendGrid).

Viewing 15 replies - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.