Method |
Description |
|
__construct ( MessageBuilder $messageBuilder, Illuminate\Contracts\Config\Repository $config ) |
Message constructor. |
|
attach ( string $path, string $name = '' ) : Message |
Attach a file to the message. |
|
bcc ( string | array $address, string $name = "", array $variables = [] ) : Message |
Add a blind carbon copy to the message. |
|
builder ( ) : MessageBuilder |
|
|
campaign ( integer | string | array $campaigns ) : Message |
Add Mailgun campaign ID(s) to the message
Campaign ID limit is 3. |
|
cc ( string | array $address, string $name = "", array $variables = [] ) : Message |
Add a carbon copy to the message. |
|
data ( string $key, mixed $data ) : Message |
Attach custom data to a message. |
|
dkim ( boolean $enabled ) : Message |
Enable/disable DKIM signature on per-message basis. |
|
embed ( string $path, string $name = null ) : string |
Embed a file in the message and get the CID. |
|
from ( string $address, string $name = "" ) |
Set from address |
|
getFiles ( ) : array |
Get the files from MessageBuilder |
|
getMessage ( ) : array |
Get the message from MessageBuilder and apply custom/extra data |
|
header ( string $key, string $value ) : Message |
Append a custom MIME header to a message. |
|
recipientVariables ( array $variables ) |
Set/Overwrite recipientVariables |
|
replyTo ( string $address, string $name = "" ) : Message |
Add a reply-to address to the message. |
|
subject ( string $subject ) : Message |
Set the subject of the message. |
|
tag ( string | array $tags ) : Message |
Add Mailgun tags to the message. |
|
testmode ( boolean | string $enabled = true ) : Message |
Enable or disable test-mode on a per-message basis. |
|
to ( string | array $address, string $name = "", array $variables = [] ) : Message |
Add a recipient to the message. |
|
trackClicks ( boolean | string $value ) : Message |
Toggles clicks tracking on a per-message basis. |
|
trackOpens ( boolean $enabled ) : Message |
Toggles opens-tracking on a per-message basis. |
|