Support » Plugin: bbPress Notify (No-Spam) » Cannot send email: Undefined property: bbPress_Notify_noSpam::$wp_mail_error

  • Resolved regisb

    (@regisb)


    Hi,

    I’m running bbPress + bbPress Notify (No Spam) in conjunction with WP Mail SMTP. Whenever I configure a custom SMTP server in WP Mail SMTP, I get the following errors in my debug.log:

    [01-Oct-2018 14:34:57 UTC] PHP Notice: Undefined property: bbPress_Notify_noSpam::$wp_mail_error in /home/.../www/wp-content/plugins/bbpress-notify-nospam/bbpress-notify-nospam.php on line 935

    Here is line 935:

    do_action( 'bbpnns_email_failed_single_user', $user_info, $filtered_subject, $filtered_body, $recipient_headers, $this->wp_mail_error );

    The wp_mail_error property is not available. Unless I’m mistaken, it is supposed to be filled by the capture_wp_mail_failure function. For some reason, it isn’t.

    I’m not sure whether I should turn to WP Mail SMTP to solve this error. Since the error log points to bbPress Notify, I thought I would post this message here.

    What do you think?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author useStrict

    (@usestrict)

    Hi Regis,

    Thanks for reaching out.

    You’re right that it’s supposed to be captured by capture_wp_mail_failure. That method is called by the wp_mail_failed action. It sounds like WP Mail SMTP isn’t calling the action at failure before returning the falsy value from wp_mail().

    I’ll add a default value to avoid the PHP notice, but it’d be great if you could reach out to them to find out why the action isn’t being called.

    Cheers,
    Vinny

    Plugin Author useStrict

    (@usestrict)

    1.18.5 is out with the Notice fix. If you don’t see it in your Updates, click ‘Check Again’ a couple of times and you should see it.

    As for not being able to send the message, I don’t think the Notice is the culprit. Please check with the WP Mail SMTP folks (I use the one from WP Forms, which is pretty good).

    Cheers,
    Vinny

    Thread Starter regisb

    (@regisb)

    Vinny,
    Thanks for your swift answer. Here’s the post on the WP Mail SMTP forums: https://wordpress.org/support/topic/bbpress-notify-no-spam-error-wp_mail_failed-is-not-called-on-error/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot send email: Undefined property: bbPress_Notify_noSpam::$wp_mail_error’ is closed to new replies.