Drupal 8  8.0.2
TestMailCollector Class Reference
Inheritance diagram for TestMailCollector:

Public Member Functions

 mail (array $message)
- Public Member Functions inherited from PhpMail
 format (array $message)
 mail (array $message)

Detailed Description

Defines a mail backend that captures sent messages in the state system.

This class is for running tests or for development.

( id = "test_mail_collector", label = ("Mail collector"), description = ("Does not send the message, but stores it in Drupal within the state system. Used for testing.") )

Member Function Documentation

mail ( array  $message)

{Sends a message composed by ->mail().

array$messageMessage array with at least the following elements:
bool TRUE if the mail was successfully accepted for delivery, otherwise FALSE.

Implements MailInterface.

References Drupal\state().

Here is the call graph for this function:

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