diff --git a/core/includes/mail.inc b/core/includes/mail.inc index abed7b3..f58a76e 100644 --- a/core/includes/mail.inc +++ b/core/includes/mail.inc @@ -201,14 +201,14 @@ function drupal_mail($module, $key, $to, $language, $params = array(), $from = N * - format: Allows to preprocess, format, and postprocess a mail * message before it is passed to the sending system. By default, all messages * may contain HTML and are converted to plain-text by the - * Drupal\Core\Mail\Mail implementation. For example, an alternative + * Drupal\Core\Mail\PhpMail implementation. For example, an alternative * implementation could override the default implementation and additionally * sanitize the HTML for usage in a MIME-encoded e-mail, but still invoking - * the Drupal\Core\Mail\Mail implementation to generate an alternate + * the Drupal\Core\Mail\PhpMail implementation to generate an alternate * plain-text version for sending. * - mail: Sends a message through a custom mail sending engine. * By default, all messages are sent via PHP's mail() function by the - * Drupal\Core\Mail\Mail implementation. + * Drupal\Core\Mail\PhpMail implementation. * * The selection of a particular implementation is controlled via the variable * 'mail_system', which is a keyed array. The default implementation @@ -225,7 +225,7 @@ function drupal_mail($module, $key, $to, $language, $params = array(), $from = N * * @code * array( - * 'default-system' => 'Drupal\Core\Mail\Mail', + * 'default-system' => 'Drupal\Core\Mail\PhpMail', * 'user' => 'DevelMailLog', * ); * @endcode @@ -235,7 +235,7 @@ function drupal_mail($module, $key, $to, $language, $params = array(), $from = N * * @code * array( - * 'default-system' => 'Drupal\Core\Mail\Mail', + * 'default-system' => 'Drupal\Core\Mail\PhpMail', * 'user' => 'DevelMailLog', * 'contact_page_autoreply' => 'DrupalDevNullMailSend', * ); @@ -260,7 +260,7 @@ function drupal_mail_system($module, $key) { $id = $module . '_' . $key; - $configuration = variable_get('mail_system', array('default-system' => 'Drupal\Core\Mail\Mail')); + $configuration = variable_get('mail_system', array('default-system' => 'Drupal\Core\Mail\PhpMail')); // Look for overrides for the default class, starting from the most specific // id, and falling back to the module name. diff --git a/core/modules/simpletest/drupal_web_test_case.php b/core/modules/simpletest/drupal_web_test_case.php index ef4e89e..97145ae 100644 --- a/core/modules/simpletest/drupal_web_test_case.php +++ b/core/modules/simpletest/drupal_web_test_case.php @@ -1441,7 +1441,7 @@ class DrupalWebTestCase extends DrupalTestCase { $language_interface = language_default(); // Use the test mail class instead of the default mail handler class. - variable_set('mail_system', array('default-system' => 'Drupal\Core\Mail\Testing')); + variable_set('mail_system', array('default-system' => 'Drupal\Core\Mail\VariableLog')); drupal_set_time_limit($this->timeLimit); $this->setup = TRUE; diff --git a/core/modules/simpletest/tests/mail.test b/core/modules/simpletest/tests/mail.test index 9d8ab30..5d33102 100644 --- a/core/modules/simpletest/tests/mail.test +++ b/core/modules/simpletest/tests/mail.test @@ -68,7 +68,7 @@ class MailTestCase extends DrupalWebTestCase implements MailInterface { /** * Concatenate and wrap the e-mail body for plain-text mails. * - * @see Drupal\Core\Mail\Mail + * @see Drupal\Core\Mail\PhpMail */ public function format(array $message) { // Join the body array into one string.