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
No edit summary
No edit summary
Line 1: Line 1:
{{Template:Themes}}
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.
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.


Line 8: Line 10:


https://tracker.moodle.org/browse/MDL-52990
https://tracker.moodle.org/browse/MDL-52990
{{Template:Themes}}

Revision as of 05:32, 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