PHP Class 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:
Inheritance: extends CComponent
Exibir arquivo Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Properties

Property Type Description
$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 Methods

Method Description
__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}.

Method Details

__call() public method

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() public method

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
return Swift_Mime_Message

__get() public method

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() public method

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() public method

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 )

Property Details

$message public_oe property

public Swift_Mime_Message $message
return Swift_Mime_Message

$view public_oe property

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