Email can be customized before sending. Administrators can customize email templates at Admin→Email Templates
Templates to Customize¶
There are two general types of templates: - per-person templates: the email is send to all selected persons - invitation - invitation_reminder - general email - registration - review_saved - per-paper templates: emails are send to all persons assigned to a selected paper, e.g. the email is send to all authors or all senior PC members of a paper - submission_confirmation - general_email_per_paper
Email content Email templates consist of three fields: - subject line - plain text content - HTML content (requires the use of HTML markup. HTML markup allows styling but may be blocked by recipients email client)s. It is therefore recommended to fill in both fields.
Template tags¶
The templates use tags (placeholders) for recipient specific information. In order for them to load, you must add the following line at the beginning of each content field:
{% load cm_mail_templatetags %}
In the template you can use all Django Template Tags
Available template variables available in all email templates:¶
{{ conf_abbr }}abbreviation of the conference name{{ conf_full_name }}full conference name{{ conf_url }}address of conference homepage
Available template variables available in per-person email templates:¶
{{ user.first_name }}First name of the recipient{{ user.last_name }}Last name of the recipient{{ user.username }}User name of the user (used to login){{ user.user_profile.affiliation1 }}Affiliation of the recipient{{ user.set_password_link }}One time link to set or reset the password-
A list of all papers assigned to the recipient is available in the following variables
{{ user.rev_X_assignments }}list of all papers assigned as a reviewer of level X (the Roles){{ user.author_of }}list of all papers the recipient is an author- each list can be iterated by a for loop, eg.
{{ for paper in user.author_of }}- for each paper a set of variables is available
{{ paper.title }}etc.
- for each paper a set of variables is available
-
For invitations an invitation object is available with the following attributes:
{{ invitation.invited_by.first_name }} {{ invitation.invited_by.last_name }}{{ invitation.invited_by_role }}{{ invitation.invited_as_role }}{{ invitation.invited_for_track }}{{ accept_url }}{{ reject_url }}
Available template variables available in per-paper email templates:¶
{{ recipients }}List of all recipients of an email, each recipient hasfirst_name,last_name, etc.{{ paper.id }}paper id{{ paper.title }}title of the paper{{ paper.state }}state of the paper (accepted, rejected, .. - as defined atAdmin→Paper State{{ paper.fields }}dynamic fields of the paper, to access the dynamic field 'length', use the template variable{{ paper.fields.length }}{{ paper.get_reviews }}returns a list of all reviews for that paper, which can be iterated by a for loop, eg.{{ for review in paper.get_reviews }}- for each review a set of variables is available
{{ review.overall }}{{ review.confidence }}- specific review fields can be accessed via
{{ review.overall.review_fields.YOUR_REVIEW_FIELD }}(The list of review fields is available atAdmin→Dynamic Forms)
Below is an example for per-paper template:¶
{% load cm_mail_templatetags %}
Dear {% for recipient in recipients %} {{ recipient.first_name}},{% endfor %}
the peer review process for {{ conf_abbr }} is now completed. In this email we send you in addition to the reviewers' comments. Once again, we are pleased to inform you that your paper:
Paper ID: {{paper.pk}}
Title: {{paper.title}}
has been selected as {{paper.state}} for presentation at the conference.
Please read through the comments of reviewers and thoroughly address raised issues in the camera-ready version of the paper. Please note that at least one author of each paper requires a registration to the conference prior to the early registration deadline of August, 16th 2016.
Thank you very much for your submission to {{ conf_abbr }} and we are looking forward to welcoming you in Los Angeles,
The {{ conf_abbr }} Program Chairs
PS: If you require assistance with the visa application process to visit the United States please contact us.
{% for review in paper.get_reviews %}
{% if review.review_fields.Comments_to_author == 'None' %}
{% if review.review_fields.MR_MetaReview != 'None' %}
============================= Meta Reviewer Comments ======================================
* Meta Review: {{review.review_fields.MR_MetaReview}}
{% endif %}
{% endif %}
{% endfor %}
{% for review in paper.get_reviews %}
{% if review.review_fields.Comments_to_author != 'None' %}
============================= Reviewer Comments ======================================
* Overall: {{review.review_fields.Overall}}
* Originality: {{review.review_fields.Originality}}
* Soundness: {{review.review_fields.Soundness}}
* Clarity: {{review.review_fields.Clarity}}
* Relevance to Conference: {{review.review_fields.Relevance}}
* Comments: {{review.review_fields.Comments_to_author}}
{% endif %}
{% endfor %}
Important Please do not use formating for Template Tags.
Add Email Templates to Pages¶
For the MailPerson and MailPaper pages, additional email templates can be added:
1. At Admin-->Email Templates add a new template. Take care to fill the description field.
2. At Admin-->Pages, select the page, where the template should be available. In the
Parameters field add the additional template names
{"mail_template_names": "['reg_sub_open', 'general_email_per_paper']"}