[buddypress-trac] [BuddyPress Trac] #7051: BP_Email::set_from() seems to set recipient details, not sender details

buddypress-trac noreply at wordpress.org
Fri May 6 16:39:01 UTC 2016


#7051: BP_Email::set_from() seems to set recipient details, not sender details
-------------------------------+------------------------------
 Reporter:  henry.wright       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  API                |     Version:  2.5.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by thebrandonallen):

 * keywords:   => reporter-feedback


Comment:

 While a little confusing, `BP_Email::set_from()` does indeed set the from
 name and from email to the '''''sender''''' info, even though it uses
 `BP_Email_Recipient`. `BP_Email_Recipient` is recipent/sender agnostic, so
 it works with the info you pass to it's constructor. It's built to handle
 multiple types of data. This is especially helpful when passing multiple
 recipients, hence the name, and then formatting/validating the data into
 reliable objects. In the case of the from name/email, it's essentially
 just validating the passed from name/email, and returning the appropriate
 object.

 Are you seeing a different behavior?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7051#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list