Documentation

Email extends PHPMailer
in package

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

Tags
example

$view = new PhpView('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();

Table of Contents

Properties

$AllowedDomains  : mixed

Methods

__construct()  : mixed
preSend()  : mixed
send()  : mixed
SkinnedHTML()  : mixed
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.

Properties

$AllowedDomains

public mixed $AllowedDomains = []

Methods

__construct()

public __construct() : mixed

preSend()

public preSend() : mixed
Tags
inheritdoc

send()

public send() : mixed
Tags
inheritdoc

SkinnedHTML()

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 SkinnedHTML(mixed $content[, mixed $extraparams = null ][, mixed $template = 'skin/email' ]) : mixed
Parameters
$content : mixed

string|View The content for the email. In the outer view becomes the parameter $content.

$extraparams : mixed = null

array Optional extra parameters to set for the outer view.

$template : mixed = 'skin/email'

string The template to use for the outer view. The default is "skin/email".

On this page

Search results