Skip to:

Creating/sending HTML emails

  • navyspitfire


    I know this is a common topic and I’ve read through several threads regarding this issue, but my emails are still sending in plain text.

    Per the emails codex page, I customized my own template in my child theme (single-bp-email.php), and when I go to Emails > Customize, my HTML template is visible.

    I am testing the activate your account email; I also am using an SMTP plugin. Are there any steps I might have missed, or anything else I can do to troubleshoot the issue?

Viewing 3 replies - 1 through 3 (of 3 total)

  • navyspitfire


    Hi, was wondering if anyone had any clue as to what could be my issue, I would greatly appreciate it.

    Edit: following this tutorial I added the wp_mail ( '', 'Mail subject', 'A <strong>HTML</strong> email' ); line but replaced the third parameter with the HTML email code, and it worked; I got an email with my header/footer HTML/styles. So why aren’t my buddypress/WP email being sent with the HTML code/styles that I’ve declared?



    Solved. Did several things in code but it seemed like this plugin did the trick.

    Paul Gibbs


    @navyspitfire BuddyPress does not use wp_mail(), so any calls to that function are ignored and not treated with BuddyPress’ email templating.

    If your BuddyPress emails were being sent plain text, then that means you have a plugin that re-declares the wp_mail() function — probably your SMTP plugin, I’d guess. There are other SMTP plugins that don’t redeclare the function, and so compatible with BuddyPress.

    We fallback to plain text in these cases to maximise compatibility with all the many ways of customising emails that WordPress permits.

    The equivalent function is bp_send_email(), and for the type of email you mention, here’s an example usage:

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