Skip to:

Opened 14 years ago

Closed 14 years ago

#2745 closed enhancement (duplicate)

BP Email Function

Reported by: crashutah's profile crashutah Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Core Keywords: close


The wp_mail() function has worked pretty well so far, but is pretty limited in how much you can modify how an email is sent. Since emails are such a major part of BuddyPress, I suggest creating a new BP email function to replace or possibly more gracefully implement the standard wp_mail function.

Here's some functions that would be nice to be made available in this new BP Email Function (along with the existing wp_mail functionality):
-Set Reply-to header
-HTML email support
-CC and BCC options
-From Email and Name option (could use code from to implement)

I'm sure there are others that people can add in the comments. As I researched for this ticket, I found that wp_mail could probably do many of these functions using $headers and some WP filters. However, BP making it dead simple for plugin developers to implement would be a great addition. Plus, it could be used by BP emails too.

Change History (2)

#1 @nacin
14 years ago

  • Keywords close added

All of this is available via wp_mail(), as it has a $headers parameter. I don't know of any way the implementation could be any more graceful than what WordPress core already has.

There's also filters on from name and from email, which perhaps BuddyPress could leverage if there's a need to include better defaults. (MU did for a while, but it was yanked with the merge.)

The entire PHPMailer object also gets passed through do_action_ref_array so you can modify it any way you want.

#2 @DJPaul
14 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

See #2404

Note: See TracTickets for help on using tickets.