[buddypress-trac] [BuddyPress Trac] #6460: core function for all calls to wp_mail
buddypress-trac
noreply at wordpress.org
Thu May 28 17:36:43 UTC 2015
#6460: core function for all calls to wp_mail
-------------------------+------------------------------
Reporter: shanebp | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: API | Version: 2.2.3
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by r-a-y):
> For example: the hooks in wp_mail() don't tell you where in BP the call
came from.
We could do this by adding a BP-specific email header like `X-BuddyPress:
mention` to each type of BP email, then you would be able to identify this
with the 'wp_mail' filter, although it would still be a pain to parse out
all email headers for this one header.
This sounds like the most sensible plan for us.
> templating
I've had an idea for awhile now to do something like how imath did for
Attachments. Allow the bp-legacy to bundle email templates. Although
boonebgorges does have a point about how "you would want to apply to *all*
emails coming from your system" to use the same template.
> It seems to me that any customizations you make to email originating
from BP (templating, using an external service like Mandrill, etc), you
would want to apply to *all* emails coming from your system - including
those sent by plugins that don't use bp_wp_mail() as well as those
generated by WP core.
These are essentially the main issues in determining whether we should
even have a core BP email solution. Or whether it makes sense for these
type of ideas to be part of a WP email plugin.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6460#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list