• Resolved mcmwebsol

    (@mcmwebsol)


    I’m using a SMTP plugin to send emails. All of the emails sent out except the admin “New Member Request” one are using the plugin’s mail setting. It appears that wp_mail() is used in BuddyPress Registration Option’s code though. Have you seen this before? Any fix?

    Below is the trace I’ve manually made of the code
    wp_mail() is used in plugins/bp-registration-options/includes/core.php line 596 in bp_registration_options_send_admin_email()
    called by bp_registration_options_bp_core_register_account()
    called by bp_registration_options_bp_core_register_account()
    on user_register hook

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Haven’t seen this before, at least not to my memory. We use wp_mail() in 2-3 spots I think, as it’s the only thing we can rely on to most likely be available, and we don’t do anything with wp_mail() except attempt to turn on HTML formatting, etc to make things pretty.

    That said, not sure what to suggest here, especially if it’s seeming to only fail in one spot.

    hieronymousch

    (@hieronymousch)

    Can confirm this problem on WP 5.2.4 and running on PHP 5.
    I have to disable the Post SMTP plugin to get the registration process working again.
    Plugin gives this error: Invalid arguments passed
    Seems to be a problem with your plugin as I use the Post SMTP on several other sites (including registration etc) without issues.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    @hieronymousch if things are error-ing out and stumbling at the registration process as a whole, then that sounds like the issue could be coming from BuddyPress core rather than our plugin here. I’m willing to be mistaken though.

    Any extra information that you can provide for files and line numbers that that “Invalid arguments passed” error is throwing, would help us confirm how much action we need to take.

    For what it’s worth, we only attempt sending emails in certain spots, and we use standard wp_mail( ... ). Specifically in callbacks for these spots:

    On the bp_core_activated_user hook.
    On the user_register hook
    On the admin_init hook IF there is moderation actions being taken.

    The extra error log information would be the most useful for me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin “New Member Request” emails don’t work with SMTP plugin’ is closed to new replies.