Spec-Zone.ru › Laravel 5.4

Сообщение

класс Сообщение (Просмотр исходного кода)

Свойства

protected Swift_Message $swift Экземпляр Swift Message.
protected array $embeddedFiles CID файлов, вложенных в сообщение.

Методы

void __construct(Swift_Message $swift)

Создать новый экземпляр сообщения.

$this from(string|array $address, string|null $name = null)

Добавить адрес "от" в сообщение.

$this sender(string|array $address, string|null $name = null)

Установить отправителя сообщения.

$this returnPath(string $address)

Установить "адрес возврата" сообщения.

$this to(string|array $address, string|null $name = null, bool $override = false)

Добавить получателя в сообщение.

$this cc(string|array $address, string|null $name = null, bool $override = false)

Добавить копию сообщения.

$this bcc(string|array $address, string|null $name = null, bool $override = false)

Добавить скрытую копию сообщения.

$this replyTo(string|array $address, string|null $name = null)

Добавить адрес ответа в сообщение.

$this addAddresses(string|array $address, string $name, string $type)

Добавить получателя в сообщение.

$this subject(string $subject)

Установить тему сообщения.

$this priority(int $level)

Установить приоритет сообщения.

$this attach(string $file, array $options = [])

Прикрепить файл к сообщению.

Swift_Attachment createAttachmentFromPath(string $file)

Создать экземпляр Swift Attachment.

$this attachData(string $data, string $name, array $options = [])

Прикрепить данные из памяти как вложение.

Swift_Attachment createAttachmentFromData(string $data, string $name)

Создать экземпляр Swift Attachment из данных.

string embed(string $file)

Вложить файл в сообщение и получить CID.

string embedData(string $data, string $name, string|null $contentType = null)

Вложить данные из памяти в сообщение и получить CID.

$this prepAttachment(Swift_Attachment $attachment, array $options = [])

Подготовить и прикрепить заданное вложение.

Swift_Message getSwiftMessage()

Получить базовый экземпляр Swift Message.

mixed __call(string $method, array $parameters)

Динамически передать отсутствующие методы экземпляру Swift.

Подробности

void __construct(Swift_Message $swift)

Создать новый экземпляр сообщения.

Параметры

Swift_Message $swift

Возвращаемое значение

void

$this from(string|array $address, string|null $name = null)

Добавить адрес "отправителя" в сообщение.

Параметры

string|array $address
string|null $name

Возвращаемое значение

$this

$this sender(string|array $address, string|null $name = null)

Установить "отправителя" сообщения.

Параметры

string|array $address
string|null $name

Возвращаемое значение

$this

$this returnPath(string $address)

Установить "адрес возврата" сообщения.

Параметры

string $address

Возвращаемое значение

$this

$this to(string|array $address, string|null $name = null, bool $override = false)

Добавить получателя в сообщение.

Параметры

string|array $address
string|null $name
bool $override

Возвращаемое значение

$this

$this cc(string|array $address, string|null $name = null, bool $override = false)

Добавить копию сообщения.

Параметры

string|array $address
string|null $name
bool $override

Возвращаемое значение

$this

$this bcc(string|array $address, string|null $name = null, bool $override = false)

Добавить скрытую копию сообщения.

Параметры

string|array $address
string|null $name
bool $override

Возвращаемое значение

$this

$this replyTo(string|array $address, string|null $name = null)

Добавить адрес для ответа на сообщение.

Параметры

string|array $address
string|null $name

Возвращаемое значение

$this

protected $this addAddresses(string|array $address, string $name, string $type)

Добавить получателя в сообщение.

Параметры

string|array $address
string $name
string $type

Возвращаемое значение

$this

$this subject(string $subject)

Установить тему сообщения.

Параметры

string $subject

Возвращаемое значение

$this

$this priority(int $level)

Установить уровень приоритета сообщения.

Параметры

int $level

Возвращаемое значение

$this

$this attach(string $file, array $options = [])

Прикрепить файл к сообщению.

Параметры

string $file
array $options

Возвращаемое значение

$this

protected Swift_Attachment createAttachmentFromPath(string $file)

Создать экземпляр Swift Attachment.

Параметры

string $file

Возвращаемое значение

Swift_Attachment

$this attachData(string $data, string $name, array $options = [])

Прикрепить данные из памяти как вложение.

Параметры

string $data
string $name
array $options

Возвращаемое значение

$this

protected Swift_Attachment createAttachmentFromData(string $data, string $name)

Создать экземпляр Swift Attachment из данных.

Параметры

string $data
string $name

Возвращаемое значение

Swift_Attachment

string embed(string $file)

Встроить файл в сообщение и получить CID.

Параметры

string $file

Возвращаемое значение

string

string embedData(string $data, string $name, string|null $contentType = null)

Встроить данные из памяти в сообщение и получить CID.

Параметры

string $data
string $name
string|null $contentType

Возвращаемое значение

string

protected $this prepAttachment(Swift_Attachment $attachment, array $options = [])

Подготовить и прикрепить заданное вложение.

Параметры

Swift_Attachment $attachment
array $options

Возвращаемое значение

$this

Swift_Message getSwiftMessage()

Получить базовый экземпляр Swift Message.

Возвращаемое значение

Swift_Message

mixed __call(string $method, array $parameters)

Динамически передать отсутствующие методы экземпляру Swift.

Параметры

string $method
array $parameters

Возвращаемое значение

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Mail/Message.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API