Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
/ email-templates Public archive

Templates for emails that Media Cloud sends.

Notifications You must be signed in to change notification settings

mediacloud/email-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaCloud Email Templates

A shared repository to hold templates for emailing users from the front- and back-end systems.

Guidelines

  • These templates are in Jinja format.
  • Always build .html and .txt versions (use the same name, but different extension for each).
  • In HTML always use P tags like this: <p style="text-align: left;line-height: 30px;color: #373737;">.

The Templates

Generic Templates

Look at generic.html and generic.txt for the most generic version of these templates. You'll see that you need to specify content for 4 content blocks:

  • content_title: a short title presented in big text at the start of the email by our logo
  • content_body: the body of the email, probably including multiple <p> tags and details
  • action_text: the text for the button that ends the email and is the primary call to action
  • action_url: the url for the button that ends the email and is the primary call to action

Activity-Specific Templates

For specific emails, name them clearly and just add them to this folder. For instance, an email with password reset information could be called password_reset.html and password_reset.txt. Define your own set of variables for these as needed, but be sure to specify the four content blocks defined above.

Original

The original HTML version is in originals. This is useful in case we want to tweak the CSS used. If you do need to do that then:

  1. first edit that file until it looks good
  2. run it through MailChimp's handy inliner tool
  3. update the email.html template (making sure to keep the content blocks in place)
  4. check any styles on content_body in all the other templates to make sure they match your changes

About

Templates for emails that Media Cloud sends.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages