MailgunTransport

class MailgunTransport implements Swift_Transport (View source)

Properties

protected string $key The Mailgun API key.
protected string $domain The Mailgun domain.
protected string $url THe Mailgun API end-point.

Methods

void __construct(string $key, string $domain)

Create a new Mailgun transport instance.

isStarted()

{@inheritdoc}

start()

{@inheritdoc}

stop()

{@inheritdoc}

send(Swift_Mime_Message $message, $failedRecipients = null)

{@inheritdoc}

registerPlugin(Swift_Events_EventListener $plugin)

{@inheritdoc}

array getTo(Swift_Mime_Message $message)

Get the "to" payload field for the API request.

Client getHttpClient()

Get a new HTTP client instance.

string getKey()

Get the API key being used by the transport.

void setKey(string $key)

Set the API key being used by the transport.

string getDomain()

Get the domain being used by the transport.

void setDomain(string $domain)

Set the domain being used by the transport.

Details

void __construct(string $key, string $domain)

Create a new Mailgun transport instance.

Parameters

string $key
string $domain

Return Value

void

isStarted()

{@inheritdoc}

start()

{@inheritdoc}

stop()

{@inheritdoc}

send(Swift_Mime_Message $message, $failedRecipients = null)

{@inheritdoc}

Parameters

Swift_Mime_Message $message
$failedRecipients

registerPlugin(Swift_Events_EventListener $plugin)

{@inheritdoc}

Parameters

Swift_Events_EventListener $plugin

protected array getTo(Swift_Mime_Message $message)

Get the "to" payload field for the API request.

Parameters

Swift_Mime_Message $message

Return Value

array

protected Client getHttpClient()

Get a new HTTP client instance.

Return Value

Client

string getKey()

Get the API key being used by the transport.

Return Value

string

void setKey(string $key)

Set the API key being used by the transport.

Parameters

string $key

Return Value

void

string getDomain()

Get the domain being used by the transport.

Return Value

string

void setDomain(string $domain)

Set the domain being used by the transport.

Parameters

string $domain

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Mail/Transport/MailgunTransport.html