Méthode | Description | |
---|---|---|
__construct ( string $mailer = 'Default' ) | Base constructor. | |
getMessage ( array | |
Creates a new message. | |
getTransport ( ) : Webiny\Component\Mailer\TransportInterface | Returns the current transport instance. | |
send ( Webiny\Component\Mailer\MessageInterface $message, null | array &$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 ( string $mailer = 'Default' ) | ||
$mailer | string | Key of the mailer configuration. |
public getMessage ( array | |
||
$config | array | |
(Optional) |
Résultat | Webiny\Component\Mailer\MessageInterface |
public getTransport ( ) : Webiny\Component\Mailer\TransportInterface | ||
Résultat | Webiny\Component\Mailer\TransportInterface |
public send ( Webiny\Component\Mailer\MessageInterface $message, null | array &$failures = null ) : boolean | integer | ||
$message | Webiny\Component\Mailer\MessageInterface | Message you want to send. |
$failures | null | array | 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=>[...]]. |