Method | Description | |
---|---|---|
getMessage ( $mailer, |
Returns an instance of MessageInterface based on current bridge. | |
getTransport ( string $mailer ) : Webiny\Component\Mailer\TransportInterface | Returns an instance of TransportInterface based on current bridge. | |
setLibrary ( string $pathToClass ) | Change the default library used for the driver. |
Method | Description | |
---|---|---|
getLibrary ( string $mailer ) : string | Get the name of bridge library which will be used as the driver. |
protected static getLibrary ( string $mailer ) : string | ||
$mailer | string | |
return | string |
public static getMessage ( $mailer, |
||
$mailer | ||
$config | ||
return | Webiny\Component\Mailer\MessageInterface |
public static getTransport ( string $mailer ) : Webiny\Component\Mailer\TransportInterface | ||
$mailer | string | |
return | Webiny\Component\Mailer\TransportInterface |
public static setLibrary ( string $pathToClass ) | ||
$pathToClass | string | Path to the new driver class. Must be an instance of \Webiny\Component\Mailer\Bridge\MailerInterface |