PHP Класс Pagekit\Mail\Message

Наследование: extends Swift_Messag\Swift_Message, implements Pagekit\Mail\MessageInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$mailer Pagekit\Mail\MailerInterface

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

Метод Описание
attachData ( string $data, string $name, string $mime = null ) : self Attaches in-memory data as an attachment.
attachFile ( string $file, string $name = null, string $mime = null ) : self Attaches a file to the message.
embedData ( string $data, string $name, string $contentType = null ) : string Embeds in-memory data in the message and get the CID.
embedFile ( string $file, string $cid = null ) : string Embeds a file in the message and get the CID.
getMailer ( )
queue ( &$errors = null )
send ( &$errors = null )
setMailer ( Pagekit\Mail\MailerInterface $mailer )

Защищенные методы

Метод Описание
prepareAttachment ( Swift_Mime_Attachment $attachment, string $name = null, string $mime = null ) : self Prepare and attach the given attachment.

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

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

Attaches in-memory data as an attachment.
public attachData ( string $data, string $name, string $mime = null ) : self
$data string
$name string
$mime string
Результат self

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

Attaches a file to the message.
public attachFile ( string $file, string $name = null, string $mime = null ) : self
$file string
$name string
$mime string
Результат self

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

Embeds in-memory data in the message and get the CID.
public embedData ( string $data, string $name, string $contentType = null ) : string
$data string
$name string
$contentType string
Результат string

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

Embeds a file in the message and get the CID.
public embedFile ( string $file, string $cid = null ) : string
$file string
$cid string
Результат string

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

public getMailer ( )

prepareAttachment() защищенный Метод

Prepare and attach the given attachment.
protected prepareAttachment ( Swift_Mime_Attachment $attachment, string $name = null, string $mime = null ) : self
$attachment Swift_Mime_Attachment
$name string
$mime string
Результат self

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

public queue ( &$errors = null )

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

public send ( &$errors = null )

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

public setMailer ( Pagekit\Mail\MailerInterface $mailer )
$mailer Pagekit\Mail\MailerInterface

Описание свойств

$mailer защищенное свойство

protected MailerInterface,Pagekit\Mail $mailer
Результат Pagekit\Mail\MailerInterface