Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Themed emails: Difference between revisions

From MoodleDocs
(Created page with "Emails are an often neglected component when it comes to branding and theming, but in most cases an email is the very first interaction a user will get. For example a user mig...")
 
No edit summary
Line 4: Line 4:


https://github.com/moodle/moodle/blob/master/lib/templates/email_subject.mustache
https://github.com/moodle/moodle/blob/master/lib/templates/email_subject.mustache
For more example and background see also:
https://tracker.moodle.org/browse/MDL-52990
{{Template:Themes}}

Revision as of 05:31, 27 November 2018

Emails are an often neglected component when it comes to branding and theming, but in most cases an email is the very first interaction a user will get. For example a user might have been batch uploaded and sent an email by moodle, or they may have used the email self registration plugin and they must interact with an email before they can really interact with moodle.

Branding all of your moodle emails is quite simple and handled via Templates the same as other normal theme components. This give you the ability to add fixed headers and footers to the email body, as well as string prefix / suffix to the email subject, and the From name.

https://github.com/moodle/moodle/blob/master/lib/templates/email_subject.mustache

For more example and background see also:

https://tracker.moodle.org/browse/MDL-52990