MandrillTransport
class MandrillTransport extends Transport (View source)
Properties
array | $plugins | The plug-ins registered with the transport. |
from Transport |
protected ClientInterface | $client | Guzzle client instance. |
|
protected string | $key | The Mandrill API key. |
Methods
Register a plug-in with the transport.
Iterate through registered plugins and execute plugins' methods.
Iterate through registered plugins and execute plugins' methods.
Get the number of recipients.
Create a new Mandrill transport instance.
{@inheritdoc}
Get all the addresses this message should be sent to.
Get the API key being used by the transport.
Set the API key being used by the transport.
Details
isStarted()
{@inheritdoc}
start()
{@inheritdoc}
stop()
{@inheritdoc}
ping()
{@inheritdoc}
void
registerPlugin(Swift_Events_EventListener $plugin)
Register a plug-in with the transport.
protected void
beforeSendPerformed(Swift_Mime_SimpleMessage $message)
Iterate through registered plugins and execute plugins' methods.
protected void
sendPerformed(Swift_Mime_SimpleMessage $message)
Iterate through registered plugins and execute plugins' methods.
protected int
numberOfRecipients(Swift_Mime_SimpleMessage $message)
Get the number of recipients.
void
__construct(ClientInterface $client, string $key)
Create a new Mandrill transport instance.
send(Swift_Mime_SimpleMessage $message, $failedRecipients = null)
{@inheritdoc}
protected array
getTo(Swift_Mime_SimpleMessage $message)
Get all the addresses this message should be sent to.
Note that Mandrill still respects CC, BCC headers in raw message itself.
string
getKey()
Get the API key being used by the transport.
string
setKey(string $key)
Set the API key being used by the transport.