• Resolved Antipole

    (@antipole)


    Hi… I have BuddyPress and bbPress site and am using Log emails.

    All works well except that I am seeing missing recipient (it is blank) in the email log just for notification of a message sent to another user through the BuddyPress system. The email does get sent to the user correctly, so it appears to be a logging problem.

    All other emails seem to be logged correctly, including others sent by BuddyPress/bbPress, such as new topic notification emails. Notification of a message is the only one with this problem, as far as I know. I have deactivated all plugins except for BuddyPress, bbPress & Log emails.

    Now this is interesting:
    (1) the emails are being sent with HTML since an update to WordPress? They show in the log with their HTML.
    (2) On my test site, I have the plugin Stop emails, which does stop the emails being actually sent out, when it is active. When it is active, the recipient appears correctly in the email log and the email is in plain text (not HTML).

    I conclude that when WordPress? has turned an email into HTML, Log emails fails to pick up the recipient in this particular message, although as the message is delivered it must be valid. I also conclude that Stop emails stops the conversion to HTML, so the email gets logged correctly.

    I hope you follow this. Any suggestions, please?

    WordPress v 4.6.1
    BuddyPress v2.6.2
    bbPress v2.5.10
    Log emails v 1.1.0

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webaware

    (@webaware)

    G’day antipole,

    It seems that BuddyPress skips wp_mail() and handles the PHP mailer object itself, so the logger never gets to see the recipients. When you enable the Stop Emails plugin (or my Disable Emails plugin, same) then BP detects that something else is running emails and falls back to calling wp_mail() which is why the logger works properly. BP also drops back to simple text mode. This is exactly what you’re seeing.

    Here’s a dev version of the next release, with a fix for BuddyPress recipients. Let me know how you go with it.

    https://www.dropbox.com/s/663cc6yobzced70/log-emails-1.2.0-dev.zip

    cheers,
    Ross

    Thread Starter Antipole

    (@antipole)

    Ross… the dev version 1.2.0-dev works fine for me – at least this issue is fixed.

    Thanks for the prompt support – great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recipient missing in log for certain BuddyPress emails’ is closed to new replies.