mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix typo in email docs.
This commit is contained in:
parent
4cb81dafdf
commit
bf67679155
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user