Drupal 8  8.0.2
PhpMail Class Reference
Inheritance diagram for PhpMail:

Public Member Functions

 format (array $message)
 
 mail (array $message)
 

Detailed Description

Defines the default Drupal mail backend, using PHP's native mail() function.

( id = "php_mail", label = ("Default PHP mailer"), description = ("Sends the message as plain text, using PHP's native mail() function.") )

Member Function Documentation

format ( array  $message)

Concatenates and wraps the email body for plain-text mails.

Parameters
array$messageA message array, as described in hook_mail_alter().
Returns
array The formatted $message.

Implements MailInterface.

References MailFormatHelper\htmlToText(), and MailFormatHelper\wrapMail().

Here is the call graph for this function:

mail ( array  $message)

Sends an email message.

Parameters
array$messageA message array, as described in hook_mail_alter().
Returns
bool TRUE if the mail was successfully accepted, otherwise FALSE.
See Also
http://php.net/manual/en/function.mail.php
::mail()

Implements MailInterface.

References Settings\get(), Unicode\mimeHeaderEncode(), and Drupal\request().

Here is the call graph for this function:


The documentation for this class was generated from the following file: