Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/27/2016 04:43:44 PM (9 years ago)
Author:
djpaul
Message:

Introduce base classes for new Email implementation.

  • 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/install.php

    r9836 r10470  
    1414require_once $config_file_path;
    1515require_once $tests_dir_path . '/includes/functions.php';
     16require_once $tests_dir_path . '/includes/mock-mailer.php';
    1617
    1718function _load_buddypress() {
     
    4950}
    5051
     52function _bp_mock_mailer( $class ) {
     53    return 'BP_UnitTest_Mailer';
     54}
     55tests_add_filter( 'bp_send_email_delivery_class', '_bp_mock_mailer' );
     56
    5157// Install BuddyPress
    5258bp_version_updater();
Note: See TracChangeset for help on using the changeset viewer.