Fix typo in email docs.

This commit is contained in:
Will Rossiter 2012-12-04 19:56:36 +13:00
parent 4cb81dafdf
commit bf67679155

View File

@ -46,12 +46,10 @@ The default HTML template is located in `framework/templates/email/GenericEmail.
// You can call this multiple times or bundle everything into an array, including DataSetObjects // You can call this multiple times or bundle everything into an array, including DataSetObjects
$email->populateTemplate(Member::currentUser()); $email->populateTemplate(Member::currentUser());
$welcomeMsg = 'Thank you for joining on '.date('Y-m-d'.'!'; $welcomeMsg = 'Thank you for joining on '.date('Y-m-d'.'!');
$email->populateTemplate( $email->populateTemplate(array(
array(
'WelcomeMessage' => $welcomeMsg, // Accessible in template via $WelcomeMessage 'WelcomeMessage' => $welcomeMsg, // Accessible in template via $WelcomeMessage
) ));
);
$email->send(); $email->send();