MailMessage

represent a mail message that can be sent via the MailClient

package

Default

Methods

MailMessage constructor

__construct( $mailMessage = null) 

Arguments

$mailMessage

mixed | null

addHeader

addHeader( $key,  $value) : $this

Arguments

$key

String

$value

String

Response

$this

getAttachment

getAttachment() : array

Response

array

getBcc

getBcc() : array

Response

array

getBounceAddress

getBounceAddress() : string

Response

string

getCc

getCc() : array

Response

array

getFrom

getFrom() : string

Response

string

getHtml

getHtml() : string

Response

string

getInlineAttachment

getInlineAttachment() : array

Response

array

getSubject

getSubject() : string

Response

string

getText

getText() : string

Response

string

getTo

getTo() : array

Response

array

isFixedHeaders

isFixedHeaders() : boolean

Response

boolean

setAttachment

setAttachment( $attachment) : $this

Arguments

$attachment

MailAttachment|array

Response

$this

setBcc

setBcc( $bcc) : $this

Arguments

$bcc

string

Response

$this

setBounceAddress

setBounceAddress( $bounceAddress) : $this

Arguments

$bounceAddress

string

Response

$this

setCc

setCc( $cc) : $this

Arguments

$cc

string

Response

$this

setFixedHeaders

setFixedHeaders( $fixedHeaders) : $this

Arguments

$fixedHeaders

boolean

Response

$this

setFrom

setFrom( $from) : $this

Arguments

$from

string

Response

$this

setHtml

setHtml( $html) : $this

Arguments

$html

string

Response

$this

setInlineAttachment

setInlineAttachment( $inlineAttachment) : $this

Arguments

$inlineAttachment

MailAttachment|array

Response

$this

setSubject

setSubject( $subject) : $this

Arguments

$subject

string

Response

$this

setText

setText( $text) : $this

Arguments

$text

string

Response

$this

setTo

setTo( $to) : $this

Arguments

$to

string

Response

$this