PHP Класс Jyxo\Mail\Email

Автор: Jaroslav Hanslík
Наследование: extends Jyxo\Spl\Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addAttachment ( Attachment $attachment ) : self Adds an attachment.
addBcc ( Address $bcc ) : self Adds a blind carbon copy recipient.
addCc ( Address $cc ) : self Adds a carbon copy recipient.
addHeader ( Header $header ) : self Adds a custom header.
addReplyTo ( Address $replyTo ) : self Adds a 'ReplyTo' address.
addTo ( Address $to ) : self Adds a recipient.
getAttachments ( ) : array Returns attachments.
getBcc ( ) : array Returns list of blind carbon copy recipients.
getBody ( ) : Body Returns message body.
getCc ( ) : array Returns list of carbon copy recipients.
getConfirmReadingTo ( ) : Address | null Returns a reading confirmation address.
getFrom ( ) : Address | null Returns sender address.
getHeaders ( ) : array Returns custom headers.
getInReplyTo ( ) : string Returns Id of the message this is a response to.
getPriority ( ) : integer Returns message priority.
getReferences ( ) : array Returns references to previous messages in the thread.
getReplyTo ( ) : array Returns the 'ReplyTo' address.
getSubject ( ) : string Returns subject.
getTo ( ) : array Returns list of message recipients.
hasInlineAttachments ( ) : boolean Checks if the message contains any attachments.
setBody ( Body $body ) : self Sets message body.
setConfirmReadingTo ( Address $confirmReadingTo ) : self Sets a reading confirmation address.
setFrom ( Address $from ) : self Sets sender address.
setInReplyTo ( string $inReplyTo, array $references = [] ) : self Sets Id of the message this is a response to.
setPriority ( integer $priority ) : self Sets message priority.
setSubject ( string $subject ) : self Sets subject.

Описание методов

addAttachment() публичный Метод

Adds an attachment.
public addAttachment ( Attachment $attachment ) : self
$attachment Jyxo\Mail\Email\Attachment Attachment
Результат self

addBcc() публичный Метод

Adds a blind carbon copy recipient.
public addBcc ( Address $bcc ) : self
$bcc Jyxo\Mail\Email\Address New recipient
Результат self

addCc() публичный Метод

Adds a carbon copy recipient.
public addCc ( Address $cc ) : self
$cc Jyxo\Mail\Email\Address New recipient
Результат self

addHeader() публичный Метод

Adds a custom header.
public addHeader ( Header $header ) : self
$header Jyxo\Mail\Email\Header Header
Результат self

addReplyTo() публичный Метод

Adds a 'ReplyTo' address.
public addReplyTo ( Address $replyTo ) : self
$replyTo Jyxo\Mail\Email\Address
Результат self

addTo() публичный Метод

Adds a recipient.
public addTo ( Address $to ) : self
$to Jyxo\Mail\Email\Address New recipient
Результат self

getAttachments() публичный Метод

Returns attachments.
public getAttachments ( ) : array
Результат array

getBcc() публичный Метод

Returns list of blind carbon copy recipients.
public getBcc ( ) : array
Результат array

getBody() публичный Метод

Returns message body.
public getBody ( ) : Body
Результат Jyxo\Mail\Email\Body

getCc() публичный Метод

Returns list of carbon copy recipients.
public getCc ( ) : array
Результат array

getConfirmReadingTo() публичный Метод

Returns a reading confirmation address.
public getConfirmReadingTo ( ) : Address | null
Результат Jyxo\Mail\Email\Address | null

getFrom() публичный Метод

Returns sender address.
public getFrom ( ) : Address | null
Результат Jyxo\Mail\Email\Address | null

getHeaders() публичный Метод

Returns custom headers.
public getHeaders ( ) : array
Результат array

getInReplyTo() публичный Метод

Returns Id of the message this is a response to.
public getInReplyTo ( ) : string
Результат string

getPriority() публичный Метод

Returns message priority.
public getPriority ( ) : integer
Результат integer

getReferences() публичный Метод

Returns references to previous messages in the thread.
public getReferences ( ) : array
Результат array

getReplyTo() публичный Метод

Returns the 'ReplyTo' address.
public getReplyTo ( ) : array
Результат array

getSubject() публичный Метод

Returns subject.
public getSubject ( ) : string
Результат string

getTo() публичный Метод

Returns list of message recipients.
public getTo ( ) : array
Результат array

hasInlineAttachments() публичный Метод

Checks if the message contains any attachments.
public hasInlineAttachments ( ) : boolean
Результат boolean

setBody() публичный Метод

Sets message body.
public setBody ( Body $body ) : self
$body Jyxo\Mail\Email\Body Body
Результат self

setConfirmReadingTo() публичный Метод

Sets a reading confirmation address.
public setConfirmReadingTo ( Address $confirmReadingTo ) : self
$confirmReadingTo Jyxo\Mail\Email\Address Confirmation recipient
Результат self

setFrom() публичный Метод

Sets sender address.
public setFrom ( Address $from ) : self
$from Jyxo\Mail\Email\Address Message sender
Результат self

setInReplyTo() публичный Метод

Sets Id of the message this is a response to.
public setInReplyTo ( string $inReplyTo, array $references = [] ) : self
$inReplyTo string Message Id
$references array Previous mail references
Результат self

setPriority() публичный Метод

Sets message priority.
public setPriority ( integer $priority ) : self
$priority integer Priority
Результат self

setSubject() публичный Метод

Sets subject.
public setSubject ( string $subject ) : self
$subject string Subject
Результат self