PHP Класс YiiMailMessage, gxc-cms

This means you need to look at the Swift Mailer documentation to see what methods are availiable for this class. There are a lot of methods, more than I wish to document. Any methods availiable in {@link Swift_Mime_Message} are availiable here. Documentation for the most important methods can be found at {@link http://swiftmailer.org/docs/messages} The YiiMailMessage component also allows using a shorthand for methods in {@link Swift_Mime_Message} that start with set* or get* For instance, instead of calling $message->setFrom('...') you can use $message->from = '...'. Here are a few methods to get you started:
Наследование: extends CComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$message Swift_Mime_Message
$view the view to use for rendering the body, null if no view is used. An extra variable $mail will be passed to the view .which you may use to set e.g. the email subject from within the view

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

Метод Описание
__call ( $name, $parameters ) Any requests to set or get attributes or call methods on this class that are not found are redirected to the {@link Swift_Mime_Message} object.
__construct ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) : Swift_Mime_Message You may optionally set some message info using the paramaters of this constructor.
__get ( $name ) Any requests to set or get attributes or call methods on this class that are not found are redirected to the {@link Swift_Mime_Message} object.
__set ( $name, $value ) Any requests to set or get attributes or call methods on this class that are not found are redirected to the {@link Swift_Mime_Message} object.
setBody ( $body = '', $contentType = null, $charset = null ) Set the body of this entity, either as a string, or array of view variables if a view is set, or as an instance of {@link Swift_OutputByteStream}.

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

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

Any requests to set or get attributes or call methods on this class that are not found are redirected to the {@link Swift_Mime_Message} object.
public __call ( $name, $parameters )

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

Use {@link view} and {@link setBody()} for more control.
public __construct ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) : Swift_Mime_Message
$subject string
$body string
$contentType string
$charset string
Результат Swift_Mime_Message

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

Any requests to set or get attributes or call methods on this class that are not found are redirected to the {@link Swift_Mime_Message} object.
public __get ( $name )

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

Any requests to set or get attributes or call methods on this class that are not found are redirected to the {@link Swift_Mime_Message} object.
public __set ( $name, $value )

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

Set the body of this entity, either as a string, or array of view variables if a view is set, or as an instance of {@link Swift_OutputByteStream}.
public setBody ( $body = '', $contentType = null, $charset = null )

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

$message публичное свойство

public Swift_Mime_Message $message
Результат Swift_Mime_Message

$view публичное свойство

the view to use for rendering the body, null if no view is used. An extra variable $mail will be passed to the view .which you may use to set e.g. the email subject from within the view
public $view