mirror of
https://github.com/buddypress/buddypress.git
synced 2026-07-22 20:56:55 +08:00
* Class `BP_Email` represents an email; the bits you see in your email client like the subject, message, recipients. It also encapsulates custom email headers and tokens. * Class `BP_Email_Recipient` represents an email recipient. It holds an email address and recipient name. If the class is instantiated with a WordPress user ID, then it also has a `WP_User` reference. * Interface `BP_Email_Delivery` is what mail delivery services will use to implement support for emails sent by BuddyPress. * Class `BP_PHPMailer` implements `BP_Email_Delivery` for PHPMailer. See #6592. Props timersys, mercime, boonebgorges, hnla, DJPaul. git-svn-id: https://buddypress.svn.wordpress.org/trunk@10470 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
20 lines
336 B
PHP
20 lines
336 B
PHP
<?php
|
|
|
|
/**
|
|
* Mock email delivery implementation.
|
|
*
|
|
* @since 2.5.0
|
|
*/
|
|
class BP_UnitTest_Mailer implements BP_Email_Delivery {
|
|
|
|
/**
|
|
* Send email(s).
|
|
*
|
|
* @param BP_Email $email Email to send.
|
|
* @return bool False if some error occurred.
|
|
* @since 2.5.0
|
|
*/
|
|
public function bp_email( BP_Email $email ) {
|
|
return true;
|
|
}
|
|
}
|