PHP 클래스 Bogardo\Mailgun\Mail\Message

파일 보기 프로젝트 열기: bogardo/mailgun 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$messageBuilder Mailgun\Messages\MessageBuilder
$variables array

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
setConfigFrom ( ) Set from address from config
setConfigNativeSend ( ) Force the from address (see description in config).
setConfigReplyTo ( ) Apply reply-to address from config.
setConfigTestMode ( ) Enable/Disable test-mode depending on config setting.

메소드 상세

__construct() 공개 메소드

Message constructor.
public __construct ( MessageBuilder $messageBuilder, Illuminate\Contracts\Config\Repository $config )
$messageBuilder Mailgun\Messages\MessageBuilder
$config Illuminate\Contracts\Config\Repository

attach() 공개 메소드

Attach a file to the message.
public attach ( string $path, string $name = '' ) : Message
$path string
$name string
리턴 Message

bcc() 공개 메소드

Add a blind carbon copy to the message.
public bcc ( string | array $address, string $name = "", array $variables = [] ) : Message
$address string | array
$name string
$variables array
리턴 Message

builder() 공개 메소드

public builder ( ) : MessageBuilder
리턴 Mailgun\Messages\MessageBuilder

campaign() 공개 메소드

Add Mailgun campaign ID(s) to the message Campaign ID limit is 3.
public campaign ( integer | string | array $campaigns ) : Message
$campaigns integer | string | array
리턴 Message

cc() 공개 메소드

Add a carbon copy to the message.
public cc ( string | array $address, string $name = "", array $variables = [] ) : Message
$address string | array
$name string
$variables array
리턴 Message

data() 공개 메소드

Attach custom data to a message.
public data ( string $key, mixed $data ) : Message
$key string
$data mixed
리턴 Message

dkim() 공개 메소드

Enable/disable DKIM signature on per-message basis.
public dkim ( boolean $enabled ) : Message
$enabled boolean
리턴 Message

embed() 공개 메소드

Embed a file in the message and get the CID.
public embed ( string $path, string $name = null ) : string
$path string
$name string
리턴 string

from() 공개 메소드

Set from address
public from ( string $address, string $name = "" )
$address string
$name string

getFiles() 공개 메소드

Get the files from MessageBuilder
public getFiles ( ) : array
리턴 array

getMessage() 공개 메소드

Get the message from MessageBuilder and apply custom/extra data
public getMessage ( ) : array
리턴 array

header() 공개 메소드

Append a custom MIME header to a message.
public header ( string $key, string $value ) : Message
$key string
$value string
리턴 Message

recipientVariables() 공개 메소드

Set/Overwrite recipientVariables
public recipientVariables ( array $variables )
$variables array

replyTo() 공개 메소드

Add a reply-to address to the message.
public replyTo ( string $address, string $name = "" ) : Message
$address string
$name string
리턴 Message

setConfigFrom() 보호된 메소드

Set from address from config
protected setConfigFrom ( )

setConfigNativeSend() 보호된 메소드

Force the from address (see description in config).
protected setConfigNativeSend ( )

setConfigReplyTo() 보호된 메소드

Apply reply-to address from config.
protected setConfigReplyTo ( )

setConfigTestMode() 보호된 메소드

Enable/Disable test-mode depending on config setting.
protected setConfigTestMode ( )

subject() 공개 메소드

Set the subject of the message.
public subject ( string $subject ) : Message
$subject string
리턴 Message

tag() 공개 메소드

Tag limit is 3.
public tag ( string | array $tags ) : Message
$tags string | array
리턴 Message

testmode() 공개 메소드

Enable or disable test-mode on a per-message basis.
public testmode ( boolean | string $enabled = true ) : Message
$enabled boolean | string
리턴 Message

to() 공개 메소드

Add a recipient to the message.
public to ( string | array $address, string $name = "", array $variables = [] ) : Message
$address string | array
$name string
$variables array
리턴 Message

trackClicks() 공개 메소드

This setting has a higher priority than the domain-level setting. Pass true, false or 'html' or 'htmlonly'.
public trackClicks ( boolean | string $value ) : Message
$value boolean | string
리턴 Message

trackOpens() 공개 메소드

This setting has a higher priority than the domain-level setting.
public trackOpens ( boolean $enabled ) : Message
$enabled boolean
리턴 Message

프로퍼티 상세

$messageBuilder 보호되어 있는 프로퍼티

protected MessageBuilder,Mailgun\Messages $messageBuilder
리턴 Mailgun\Messages\MessageBuilder

$variables 보호되어 있는 프로퍼티

protected array $variables
리턴 array