diff --git a/core/includes/mail.inc b/core/includes/mail.inc index c22d10a..579c28d 100644 --- a/core/includes/mail.inc +++ b/core/includes/mail.inc @@ -15,9 +15,9 @@ * appropriate places in the template. Processed email templates are * requested from hook_mail() from the module sending the email. Any module * can modify the composed email message array using hook_mail_alter(). - * Finally drupal_mail_system()->mail() sends the email, which can - * be reused if the exact same composed email is to be sent to multiple - * recipients. + * Finally \Drupal::service('plugin.manager.mail')->getInstance()->mail() sends + * the email, which can be reused if the exact same composed email is to be sent + * to multiple recipients. * * Finding out what language to send the email with needs some consideration. * If you send email to a user, her preferred language should be fine, so @@ -101,7 +101,8 @@ * @param string|null $reply * Optional email address to be used to answer. * @param bool $send - * If TRUE, drupal_mail() will call drupal_mail_system()->mail() to deliver + * If TRUE, drupal_mail() will call + * \Drupal::service('plugin.manager.mail')->getInstance()->mail() to deliver * the message, and store the result in $message['result']. Modules * implementing hook_mail_alter() may cancel sending by setting * $message['send'] to FALSE.