Méthode | Description | |
---|---|---|
__construct ( |
Base constructor. | |
send ( Webiny\Component\Mailer\MessageInterface $message, array | null &$failures = null ) : boolean | integer | Sends the message. | |
setDecorators ( array $replacements ) | Decorators are arrays that contain keys and values. The message body and subject will be scanned for the keys, and, where found, the key will be replaced with the value. |
public __construct ( |
||
$config | The base configuration. |
public send ( Webiny\Component\Mailer\MessageInterface $message, array | null &$failures = null ) : boolean | integer | ||
$message | Webiny\Component\Mailer\MessageInterface | Message you want to send. |
$failures | array | null | To this array failed addresses will be stored. |
Résultat | boolean | integer | Number of success sends, or bool FALSE if sending failed. |
public setDecorators ( array $replacements ) | ||
$replacements | array | Array [email=> [key1=>value1, key2=>value2], email2=>[...]]. |