Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

Email elements

API >> mvc >> elements >> emails

Email elements are special elements that are used as templates for sending emails. They work exactly like an ordinary element but are available from the controller using:

get::element('emails/yourElement', $args)

$args are optional, if used they must be an associative array. All keys in the array become local variables within the email element, eg.: array('firstname' => 'Larry') can be accessed within the email element via $firstname

Vork comes with some default email elements, the retrievePass email element is used by the forgotPassword() method of the account component.