TestMailer ​
- Type
- Class
- Namespace
- craft\test
- Inherits
- craft\test\TestMailer » craft\mail\Mailer »
yii\symfonymailer\Mailer
- Since
- 3.2.0
Exactly the same as Codeception\Lib\Connector\Yii2\TestMailer except that we override based on Crafts own mailer class.
Public Properties ​
Property | Description |
---|---|
callback | callable |
from | |
messageClass | string |
replyTo | string, array, craft\elements\User, craft\elements\User[], null – The default Reply-To email address, or their user model(s). |
template | string, null – The email template that should be used |
callback
​
- Type
- callable
- Default value
null
from
​
- Default value
'test@test.craft'
messageClass
​
- Type
- string
- Default value
\craft\mail\Message::class
Public Methods ​
Method | Description |
---|---|
composeFromKey() | Composes a new email based on a given key. |
send() |
Protected Methods ​
Method | Description |
---|---|
saveMessage() | |
sendMessage() |
saveMessage()
​
Arguments ​
$message
sendMessage()
​
Arguments ​
$message