MandrillTransport
class MandrillTransport extends Transport (View source)
Свойства
| массив | $plugins | Зарегистрированные плагины транспорта. | из Transport |
| protected ClientInterface | $client | Экземпляр клиента Guzzle. | |
| protected string | $key | Ключ API Mandrill. |
Методы
| isStarted() {@inheritdoc} | из Transport | |
| start() {@inheritdoc} | из Transport | |
| stop() {@inheritdoc} | из Transport | |
| ping() {@inheritdoc} | из Transport | |
| void | registerPlugin(Swift_Events_EventListener $plugin) Зарегистрировать плагин в транспорте. | из Transport |
| void | beforeSendPerformed(Swift_Mime_SimpleMessage $message) Итерировать по зарегистрированным плагинам и выполнять методы плагинов. | из Transport |
| void | sendPerformed(Swift_Mime_SimpleMessage $message) Итерировать по зарегистрированным плагинам и выполнять методы плагинов. | из Transport |
| int | numberOfRecipients(Swift_Mime_SimpleMessage $message) Получить количество получателей. | из Transport |
| void | __construct(ClientInterface $client, string $key) Создать новый экземпляр транспорта Mandrill. | |
| send(Swift_Mime_SimpleMessage $message, $failedRecipients = null) {@inheritdoc} | ||
| массив | getTo(Swift_Mime_SimpleMessage $message) Получить все адреса получателей этого сообщения. | |
| string | getKey() Получить API ключ, используемый транспортом. | |
| string | setKey(string $key) Установить API ключ, используемый транспортом. |
Подробности
isStarted()
{@inheritdoc}
start()
{@inheritdoc}
stop()
{@inheritdoc}
ping()
{@inheritdoc}
void registerPlugin(Swift_Events_EventListener $plugin)
Зарегистрировать плагин в транспорте.
protected void beforeSendPerformed(Swift_Mime_SimpleMessage $message)
Итерировать по зарегистрированным плагинам и выполнять методы плагинов.
protected void sendPerformed(Swift_Mime_SimpleMessage $message)
Итерировать по зарегистрированным плагинам и выполнять методы плагинов.
protected int numberOfRecipients(Swift_Mime_SimpleMessage $message)
Получить количество получателей.
void __construct(ClientInterface $client, string $key)
Создать новый экземпляр транспорта Mandrill.
send(Swift_Mime_SimpleMessage $message, $failedRecipients = null)
{@inheritdoc}
protected array getTo(Swift_Mime_SimpleMessage $message)
Получить все адреса получателей этого сообщения.
Обратите внимание, что Mandrill все еще учитывает заголовки CC, BCC в самом сыром сообщении.
string getKey()
Получить API ключ, используемый транспортом.
string setKey(string $key)
Установить API ключ, используемый транспортом.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Mail/Transport/MandrillTransport.html