SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Email

Sends emails using HTML content generated by a View, wrapped in a standard template

Example

$view = new View('modules/MyModule/welcome_email');
$view->set(...);
 
$mail = new Email();
$mail->Subject = 'Talking about the things and stuff';
$mail->addAddress('example@example.org', 'Elaine Exemplary');
$mail->SkinnedHTML($view);
$mail->send();

Functions

NameVisibilityDescription
SkinnedHTMLpublicSets the message content to be the specified content, with the email skin around it
__constructpublic 

public SkinnedHTML

void $Email->SkinnedHTML ( string|View $content [, array $extraparams [, string $template ]] );

Sets the message content to be the specified content, with the email skin around it
Content can either be a HTML string or a View.

public __construct

void $Email->__construct ( );

This function does not have a description