SproutCMS

This is the code documentation for the SproutCMS project

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();

Class structure