SparkPostTransport
class SparkPostTransport 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 SparkPost API key. | |
protected array | $options | Transmission options. |
Methods
isStarted() {@inheritdoc} | from Transport | |
start() {@inheritdoc} | from Transport | |
stop() {@inheritdoc} | from Transport | |
void | registerPlugin(Swift_Events_EventListener $plugin) Register a plug-in with the transport. | from Transport |
void | beforeSendPerformed(Swift_Mime_Message $message) Iterate through registered plugins and execute plugins' methods. | from Transport |
void | __construct(ClientInterface $client, string $key, array $options = []) Create a new SparkPost transport instance. | |
send(Swift_Mime_Message $message, $failedRecipients = null) {@inheritdoc} | ||
array | getRecipients(Swift_Mime_Message $message) Get all the addresses this message should be sent to. | |
string | getKey() Get the API key being used by the transport. | |
string | setKey(string $key) Set the API key being used by the transport. |
Details
isStarted()
{@inheritdoc}
start()
{@inheritdoc}
stop()
{@inheritdoc}
void registerPlugin(Swift_Events_EventListener $plugin)
Register a plug-in with the transport.
protected void beforeSendPerformed(Swift_Mime_Message $message)
Iterate through registered plugins and execute plugins' methods.
void __construct(ClientInterface $client, string $key, array $options = [])
Create a new SparkPost transport instance.
send(Swift_Mime_Message $message, $failedRecipients = null)
{@inheritdoc}
protected array getRecipients(Swift_Mime_Message $message)
Get all the addresses this message should be sent to.
Note that SparkPost 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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Mail/Transport/SparkPostTransport.html