[buddypress-trac] [BuddyPress Trac] #7286: BP Email: Allow end user to specify which PHPMailer should be used.

buddypress-trac noreply at wordpress.org
Thu Oct 13 18:38:39 UTC 2016


#7286: BP Email: Allow end user to specify which PHPMailer should be used.
-------------------------+--------------------
 Reporter:  dcavins      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.8
Component:  Emails       |     Version:  2.5.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+--------------------

Comment (by dcavins):

 I've added a patch that just adds a filter on `$phpmailer` at the
 beginning of `BP_PHPMailer::bp_email()`. When talking with @djpaul about
 my request, he had a different idea:

       The better way would be to accept a phpmailer instance somewhere up
 the chain, that gets passed to the Bp email object.

 Which could be the addition of a new `var` in `BP_Email` and a helper
 method `BP_Email::get_phpmailer()` to create the `PHPMailer` instance and
 fetch it. I can work up a patch that goes that route if it would be useful
 for more cases than the one I'm solving.

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


More information about the buddypress-trac mailing list