Spec-Zone.ru › Laravel 6

Сообщение

класс Сообщение mixin Swift_Message (Просмотреть исходный код)

Трейты

ForwardsCalls

Свойства

protected Swift_Message $swift

Экземпляр Swift Message.

protected array $embeddedFiles

Идентификаторы файлов, вставленных в сообщение.

Методы

mixed forwardCallTo(mixed $object, string $method, array $parameters)

Перенаправить вызов метода заданному объекту.

from ForwardsCalls
static void throwBadMethodCallException(string $method)

Выбросить исключение неверного вызова метода для данного метода.

from ForwardsCalls
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_Mime_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.

Детали

protected mixed forwardCallTo(mixed $object, string $method, array $parameters)

Перенаправить вызов метода заданному объекту.

Параметры

mixed $object
string $method
array $parameters

Значение возврата

mixed

Исключения

BadMethodCallException

static protected void throwBadMethodCallException(string $method)

Выбросить исключение плохого вызова метода для заданного метода.

Параметры

string $method

Значение возврата

void

Исключения

BadMethodCallException

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)

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

Parameters

string|array $address
string|null $name

Return Value

$this

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

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

Parameters

string|array $address
string $name
string $type

Return Value

$this

$this subject(string $subject)

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

Parameters

string $subject

Return Value

$this

$this priority(int $level)

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

Parameters

int $level

Return Value

$this

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

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

Parameters

string $file
array $options

Return Value

$this

protected Swift_Mime_Attachment createAttachmentFromPath(string $file)

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

Parameters

string $file

Return Value

Swift_Mime_Attachment

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

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

Parameters

string $data
string $name
array $options

Return Value

$this

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

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

Parameters

string $data
string $name

Return Value

Swift_Attachment

string embed(string $file)

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

Parameters

string $file

Return Value

string

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

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

Parameters

string $data
string $name
string|null $contentType

Return Value

string

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

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

Параметры

Swift_Attachment $attachment
массив $options

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

$this

Swift_Message getSwiftMessage()

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

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

Swift_Message

mixed __call(string $method, array $parameters)

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

Параметры

строка $method
массив $parameters

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

mixed

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

Spec-Zone.ru

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