-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for (ticket) email blasts (#749)
* Support email blasts to ticket holders * Add tests * Fix permissioning and add 400 response * Address nits
- Loading branch information
1 parent
e0fc84f
commit 56b9394
Showing
4 changed files
with
156 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- TYPES: | ||
sender: | ||
type: string | ||
content: | ||
type: string | ||
reply_emails: | ||
type: array | ||
items: | ||
type: string | ||
--> | ||
{% extends 'emails/base.html' %} | ||
|
||
{% block content %} | ||
<h2>Message from {{ sender }}</h2> | ||
|
||
<p style="font-size: 1.2em"> | ||
The following message was sent by <b>{{ sender }}</b>: | ||
</p> | ||
|
||
<p style="font-size: 1.2em; padding: 8px; border-left: 5px solid #ccc; white-space: pre-wrap;">{{ content }}</p> | ||
|
||
<p style="font-size: 1.2em"> | ||
If you have any questions, please respond to this email or <a href="mailto:{% for email in reply_emails %}{% if not forloop.first %},{% endif %}{{ email }}{% endfor %}">contact the sender</a>. | ||
</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters