We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Generated reset password link is correct but not clickable
**I'm submitting a ...**  (check one with "x")
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-server

**Current behavior:**
<!-- Describe how the bug manifests. -->
![image](https://user-images.githubusercontent.com/17252805/35488202-a4284b54-04aa-11e8-981a-f8bf29de8615.png)
The link appears as static text in the email.
**Expected behavior:**
<!-- Describe what the behavior would be without the bug. -->
The link should be clickable.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `app/api/helpers/system_mails.py`
Content:
```
1 """
2 All the System mails
3 Register a mail here before using it
4 """
5 from app.models.mail import INVITE_PAPERS, NEW_SESSION, USER_CONFIRM, \
6     USER_REGISTER, PASSWORD_RESET, EVENT_ROLE, SESSION_ACCEPT_REJECT, \
7     SESSION_SCHEDULE, NEXT_EVENT, EVENT_PUBLISH, AFTER_EVENT, USER_CHANGE_EMAIL, USER_REGISTER_WITH_PASSWORD, \
8     TICKET_PURCHASED, EVENT_EXPORTED, EVENT_EXPORT_FAIL, MAIL_TO_EXPIRED_ORDERS, MONTHLY_PAYMENT_EMAIL, \
9     MONTHLY_PAYMENT_FOLLOWUP_EMAIL, EVENT_IMPORTED, EVENT_IMPORT_FAIL, TICKET_PURCHASED_ORGANIZER, TICKET_CANCELLED, \
10     TICKET_PURCHASED_ATTENDEE, PASSWORD_CHANGE
11 
12 MAILS = {
13     EVENT_PUBLISH: {
14         'recipient': 'Organizer, Speaker',
15         'subject': u'{event_name} is Live',
16         'message': (
17             u"Hi {email}<br/>" +
18             u"Event, {event_name}, is up and running and ready for action. Go ahead and check it out." +
19             u"<br/> Visit this link to view it: {link}"
20         )
21     },
22     INVITE_PAPERS: {
23         'recipient': 'Speaker',
24         'subject': u'Invitation to Submit Papers for {event_name}',
25         'message': (
26             u"Hi {email}<br/>" +
27             u"You are invited to submit papers for event: {event_name}" +
28             u"<br/> Visit this link to fill up details: {link}"
29         )
30     },
31     SESSION_ACCEPT_REJECT: {
32         'recipient': 'Speaker',
33         'subject': u'Session {session_name} has been {acceptance}',
34         'message': (
35             u"Hi {email},<br/>" +
36             u"The session <strong>{session_name}</strong> has been <strong>{acceptance}</strong> by the organizer. " +
37             u"<br/> Visit this link to view the session: {link}"
38         )
39     },
40     SESSION_SCHEDULE: {
41         'recipient': 'Organizer, Speaker',
42         'subject': u'Schedule for Session {session_name} has been changed',
43         'message': (
44             u"Hi {email},<br/>" +
45             u"The schedule for session <strong>{session_name}</strong> has been changed. " +
46             u"<br/> Visit this link to view the session: {link}"
47         )
48     },
49     NEXT_EVENT: {
50         'recipient': 'Organizer, Speaker',
51         'subject': u'Event {event_name} is coming soon',
52         'message': (
53             u"Hi {email},<br/>" +
54             u"Here are the upcoming events: {up_coming_events} .Get ready!! " +
55             u"<br/> Visit this link to view the event: {link}"
56         )
57     },
58     AFTER_EVENT: {
59         'recipient': 'Organizer, Speaker',
60         'subject': u'Event {event_name} is over',
61         'message': (
62             u"Hi {email},<br/>" +
63             u"Thank You for participating in our event. We hope you enjoyed it. "
64             u"Please check the list of more upcoming events" +
65             u"Here are the upcoming events: {upcoming_events} .Get ready!! "
66         ),
67         'sent_at': '1 day after the event'
68     },
69     NEW_SESSION: {
70         'recipient': 'Organizer',
71         'subject': u'New session proposal for {event_name}',
72         'message': (
73             u"Hi {email},<br/>" +
74             u"The event <strong>{event_name}</strong> has received a new session proposal. " +
75             u"<br/> Visit this link to view the session: {link}"
76         )
77     },
78     USER_REGISTER: {
79         'recipient': 'User',
80         'subject': u'Account Created on {app_name}',
81         'message': (
82             u"Your Account Has Been Created! Congratulations!" +
83             u"<br/> Your login: {email}"
84         )
85     },
86     USER_REGISTER_WITH_PASSWORD: {
87         'recipient': 'User',
88         'subject': u'Welcome to {app_name}',
89         'message': (
90             u"Your Account Has Been Created! Congratulations!" +
91             u"<br/> <strong>Your login:</strong><br><strong>Email:</strong> {email}<br>"
92         )
93     },
94     USER_CONFIRM: {
95         'recipient': 'User',
96         'subject': u'Email Confirmation to Create Account for Open-Event',
97         'message': (
98             u"Hi {email},<br/>" +
99             u"Please visit this link to confirm your email: {link}"
100         )
101     },
102     USER_CHANGE_EMAIL: {
103         'recipient': 'User',
104         'subject': u'Your email has been already changed',
105         'message': (
106             u"Hi {email},<br/>" +
107             u"Your email has been already changed from {email} to {new_email}. You should verify your new email"
108         )
109     },
110     PASSWORD_RESET: {
111         'recipient': 'User',
112         'subject': u'{app_name}: Password Reset',
113         'message': (
114             u"Please use the following link to reset your password.<br> {link}"
115         )
116     },
117     PASSWORD_CHANGE: {
118         'recipient': 'User',
119         'subject': u'{app_name}: Password Change',
120         'message': (
121             u"Your password has been successfully changed. Please login with your new password."
122         )
123     },
124     EVENT_ROLE: {
125         'recipient': 'User',
126         'subject': u'Invitation to be {role} at {event}',
127         'message': (
128             u"Hello {email},<br><br>" +
129             u"You've been invited to be a <strong>{role}</strong> at <strong>{event}</strong>.<br>" +
130             u"To accept the role please sign up using the following link: <a href='{link}' target='_blank'>Link</a>."
131         )
132     },
133     TICKET_PURCHASED: {
134         'recipient': 'User',
135         'subject': u'Your order invoice and tickets for {event_name} ({invoice_id}) ',
136         'message': (
137             u"Hi, this is a confirmation mail of your tickets for the event {event_name}"
138             u"<br/>Your order has been processed successfully." +
139             u"<br/> <a href='{pdf_url}'>Click here</a> to view/download your invoice."
140             u"<br><br><em>Looking forward to seeing you at the event."
141             u"<br/>Login to manage your orders at https://eventyay.com </em>"
142         )
143     },
144     TICKET_PURCHASED_ATTENDEE: {
145         'recipient': 'Attendee',
146         'subject': u'Your tickets for {event_name} ({invoice_id}) ',
147         'message': (
148             u"Hi, this is a confirmation mail of your tickets for the event {event_name}"
149             u"<br/>Your order has been processed successfully." +
150             u"<br/> <a href='{pdf_url}'>Click here</a> to view/download your ticket."
151             u"<br><br><em>Looking forward to seeing you at the event."
152         )
153     },
154 
155     TICKET_PURCHASED_ORGANIZER: {
156         'recipient': 'Organizer, Coorganizer',
157         'subject': u'New ticket purchase for {event_name} by {buyer_email} ({invoice_id}) ',
158         'message': (
159             u"Hi, {buyer_email} just bought tickets for the event {event_name}"
160             u"<br/>The order has been processed successfully." +
161             u"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice."
162             u"<br/>Login to manage the orders at https://eventyay.com </em>"
163         )
164     },
165     TICKET_CANCELLED: {
166         'recipient': 'User',
167         'subject': u'Your order for {event_name} has been cancelled ({invoice_id})',
168         'message': (
169             u"Hi,Your order for {event_name} has been cancelled has been cancelled by the organizer"
170             u"<br/>Please contact the organizer for more info" +
171             u"<br/>Message from the organizer: {cancel_note}"
172             u"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice."
173             u"<br/>Login to manage the orders at https://eventyay.com </em>"
174         )
175     },
176     EVENT_EXPORTED: {
177         'recipient': 'User',
178         'subject': u'Event {event_name} has been exported',
179         'message': (
180             u"Click on the following link to download the event." +
181             u"<br> <a href='{download_url}'>Download</a>"
182         )
183     },
184     EVENT_EXPORT_FAIL: {
185         'recipient': 'User',
186         'subject': u'Export of event {event_name} failed',
187         'message': (
188             u"The error was as follows - <br>" +
189             u"<pre>{error_text}</pre>"
190         )
191     },
192     MAIL_TO_EXPIRED_ORDERS: {
193         'recipient': 'User',
194         'subject': u'Tickets for {event_name} are still available ',
195         'message': (
196             u"This is just a gentle reminder that the payment for your order {invoice_id} is still left." +
197             u"<br/> The tickets for this event are still available. <a href='{order_url}'>Click here</a> to "
198             u"purchase your ticket for this event."
199             u"<br><br><em>Looking forward to seeing you at the event.</em>"
200         )
201     },
202     MONTHLY_PAYMENT_EMAIL: {
203         'recipient': 'Organizer',
204         'subject': u'{date} - Monthly service fee invoice for {event_name}',
205         'message': (
206             u"The total service fee for the ticket sales of {event_name} in the month of {date} is {amount}." +
207             u"<br/> That payment for the same has to be made in two weeks. <a href='{payment_url}'>Click here</a> to "
208             u"view your invoice and complete the payment."
209             u"<br><br><em>Thank you for using {app_name}.</em>"
210         ),
211         'sent_at': '1st day of the month'
212     },
213     MONTHLY_PAYMENT_FOLLOWUP_EMAIL: {
214         'recipient': 'Organizer',
215         'subject': u'Past Due: {date} - Monthly service fee invoice for {event_name}',
216         'message': (
217             u"The total service fee for the ticket sales of {event_name} in the month of {date} is {amount}." +
218             u"<br/> That payment for the same is past the due date. <a href='{payment_url}'>Click here</a> to "
219             u"view your invoice and complete the payment to prevent loss of functionality."
220             u"<br><br><em>Thank you for using {app_name}.</em>"
221         ),
222         'sent_at': '15th day of the month'
223     },
224     EVENT_IMPORTED: {
225         'recipient': 'User',
226         'subject': u'Event {event_name} has been imported',
227         'message': (
228             u"Click on the following link to manage your event" +
229             u"<br> <a href='{event_url}'>Link</a>"
230         )
231     },
232     EVENT_IMPORT_FAIL: {
233         'recipient': 'User',
234         'subject': u'Import of event failed',
235         'message': (
236             u"The error was as follows - <br>" +
237             u"<pre>{error_text}</pre>"
238         )
239     }
240 }
241
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/app/api/helpers/system_mails.py b/app/api/helpers/system_mails.py
--- a/app/api/helpers/system_mails.py
+++ b/app/api/helpers/system_mails.py
@@ -111,7 +111,7 @@
         'recipient': 'User',
         'subject': u'{app_name}: Password Reset',
         'message': (
-            u"Please use the following link to reset your password.<br> {link}"
+            u"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>"
         )
     },
     PASSWORD_CHANGE: {

{"golden_diff": "diff --git a/app/api/helpers/system_mails.py b/app/api/helpers/system_mails.py\n--- a/app/api/helpers/system_mails.py\n+++ b/app/api/helpers/system_mails.py\n@@ -111,7 +111,7 @@\n         'recipient': 'User',\n         'subject': u'{app_name}: Password Reset',\n         'message': (\n-            u\"Please use the following link to reset your password.<br> {link}\"\n+            u\"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>\"\n         )\n     },\n     PASSWORD_CHANGE: {\n", "issue": "Generated reset password link is correct but not clickable\n**I'm submitting a ...**  (check one with \"x\")\r\n- [x] bug report\r\n- [ ] feature request\r\n- [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-server\r\n\r\n**Current behavior:**\r\n<!-- Describe how the bug manifests. -->\r\n![image](https://user-images.githubusercontent.com/17252805/35488202-a4284b54-04aa-11e8-981a-f8bf29de8615.png)\r\nThe link appears as static text in the email.\r\n**Expected behavior:**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nThe link should be clickable.\r\n\n", "before_files": [{"content": "\"\"\"\nAll the System mails\nRegister a mail here before using it\n\"\"\"\nfrom app.models.mail import INVITE_PAPERS, NEW_SESSION, USER_CONFIRM, \\\n    USER_REGISTER, PASSWORD_RESET, EVENT_ROLE, SESSION_ACCEPT_REJECT, \\\n    SESSION_SCHEDULE, NEXT_EVENT, EVENT_PUBLISH, AFTER_EVENT, USER_CHANGE_EMAIL, USER_REGISTER_WITH_PASSWORD, \\\n    TICKET_PURCHASED, EVENT_EXPORTED, EVENT_EXPORT_FAIL, MAIL_TO_EXPIRED_ORDERS, MONTHLY_PAYMENT_EMAIL, \\\n    MONTHLY_PAYMENT_FOLLOWUP_EMAIL, EVENT_IMPORTED, EVENT_IMPORT_FAIL, TICKET_PURCHASED_ORGANIZER, TICKET_CANCELLED, \\\n    TICKET_PURCHASED_ATTENDEE, PASSWORD_CHANGE\n\nMAILS = {\n    EVENT_PUBLISH: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'{event_name} is Live',\n        'message': (\n            u\"Hi {email}<br/>\" +\n            u\"Event, {event_name}, is up and running and ready for action. Go ahead and check it out.\" +\n            u\"<br/> Visit this link to view it: {link}\"\n        )\n    },\n    INVITE_PAPERS: {\n        'recipient': 'Speaker',\n        'subject': u'Invitation to Submit Papers for {event_name}',\n        'message': (\n            u\"Hi {email}<br/>\" +\n            u\"You are invited to submit papers for event: {event_name}\" +\n            u\"<br/> Visit this link to fill up details: {link}\"\n        )\n    },\n    SESSION_ACCEPT_REJECT: {\n        'recipient': 'Speaker',\n        'subject': u'Session {session_name} has been {acceptance}',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"The session <strong>{session_name}</strong> has been <strong>{acceptance}</strong> by the organizer. \" +\n            u\"<br/> Visit this link to view the session: {link}\"\n        )\n    },\n    SESSION_SCHEDULE: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'Schedule for Session {session_name} has been changed',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"The schedule for session <strong>{session_name}</strong> has been changed. \" +\n            u\"<br/> Visit this link to view the session: {link}\"\n        )\n    },\n    NEXT_EVENT: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'Event {event_name} is coming soon',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Here are the upcoming events: {up_coming_events} .Get ready!! \" +\n            u\"<br/> Visit this link to view the event: {link}\"\n        )\n    },\n    AFTER_EVENT: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'Event {event_name} is over',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Thank You for participating in our event. We hope you enjoyed it. \"\n            u\"Please check the list of more upcoming events\" +\n            u\"Here are the upcoming events: {upcoming_events} .Get ready!! \"\n        ),\n        'sent_at': '1 day after the event'\n    },\n    NEW_SESSION: {\n        'recipient': 'Organizer',\n        'subject': u'New session proposal for {event_name}',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"The event <strong>{event_name}</strong> has received a new session proposal. \" +\n            u\"<br/> Visit this link to view the session: {link}\"\n        )\n    },\n    USER_REGISTER: {\n        'recipient': 'User',\n        'subject': u'Account Created on {app_name}',\n        'message': (\n            u\"Your Account Has Been Created! Congratulations!\" +\n            u\"<br/> Your login: {email}\"\n        )\n    },\n    USER_REGISTER_WITH_PASSWORD: {\n        'recipient': 'User',\n        'subject': u'Welcome to {app_name}',\n        'message': (\n            u\"Your Account Has Been Created! Congratulations!\" +\n            u\"<br/> <strong>Your login:</strong><br><strong>Email:</strong> {email}<br>\"\n        )\n    },\n    USER_CONFIRM: {\n        'recipient': 'User',\n        'subject': u'Email Confirmation to Create Account for Open-Event',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Please visit this link to confirm your email: {link}\"\n        )\n    },\n    USER_CHANGE_EMAIL: {\n        'recipient': 'User',\n        'subject': u'Your email has been already changed',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Your email has been already changed from {email} to {new_email}. You should verify your new email\"\n        )\n    },\n    PASSWORD_RESET: {\n        'recipient': 'User',\n        'subject': u'{app_name}: Password Reset',\n        'message': (\n            u\"Please use the following link to reset your password.<br> {link}\"\n        )\n    },\n    PASSWORD_CHANGE: {\n        'recipient': 'User',\n        'subject': u'{app_name}: Password Change',\n        'message': (\n            u\"Your password has been successfully changed. Please login with your new password.\"\n        )\n    },\n    EVENT_ROLE: {\n        'recipient': 'User',\n        'subject': u'Invitation to be {role} at {event}',\n        'message': (\n            u\"Hello {email},<br><br>\" +\n            u\"You've been invited to be a <strong>{role}</strong> at <strong>{event}</strong>.<br>\" +\n            u\"To accept the role please sign up using the following link: <a href='{link}' target='_blank'>Link</a>.\"\n        )\n    },\n    TICKET_PURCHASED: {\n        'recipient': 'User',\n        'subject': u'Your order invoice and tickets for {event_name} ({invoice_id}) ',\n        'message': (\n            u\"Hi, this is a confirmation mail of your tickets for the event {event_name}\"\n            u\"<br/>Your order has been processed successfully.\" +\n            u\"<br/> <a href='{pdf_url}'>Click here</a> to view/download your invoice.\"\n            u\"<br><br><em>Looking forward to seeing you at the event.\"\n            u\"<br/>Login to manage your orders at https://eventyay.com </em>\"\n        )\n    },\n    TICKET_PURCHASED_ATTENDEE: {\n        'recipient': 'Attendee',\n        'subject': u'Your tickets for {event_name} ({invoice_id}) ',\n        'message': (\n            u\"Hi, this is a confirmation mail of your tickets for the event {event_name}\"\n            u\"<br/>Your order has been processed successfully.\" +\n            u\"<br/> <a href='{pdf_url}'>Click here</a> to view/download your ticket.\"\n            u\"<br><br><em>Looking forward to seeing you at the event.\"\n        )\n    },\n\n    TICKET_PURCHASED_ORGANIZER: {\n        'recipient': 'Organizer, Coorganizer',\n        'subject': u'New ticket purchase for {event_name} by {buyer_email} ({invoice_id}) ',\n        'message': (\n            u\"Hi, {buyer_email} just bought tickets for the event {event_name}\"\n            u\"<br/>The order has been processed successfully.\" +\n            u\"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice.\"\n            u\"<br/>Login to manage the orders at https://eventyay.com </em>\"\n        )\n    },\n    TICKET_CANCELLED: {\n        'recipient': 'User',\n        'subject': u'Your order for {event_name} has been cancelled ({invoice_id})',\n        'message': (\n            u\"Hi,Your order for {event_name} has been cancelled has been cancelled by the organizer\"\n            u\"<br/>Please contact the organizer for more info\" +\n            u\"<br/>Message from the organizer: {cancel_note}\"\n            u\"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice.\"\n            u\"<br/>Login to manage the orders at https://eventyay.com </em>\"\n        )\n    },\n    EVENT_EXPORTED: {\n        'recipient': 'User',\n        'subject': u'Event {event_name} has been exported',\n        'message': (\n            u\"Click on the following link to download the event.\" +\n            u\"<br> <a href='{download_url}'>Download</a>\"\n        )\n    },\n    EVENT_EXPORT_FAIL: {\n        'recipient': 'User',\n        'subject': u'Export of event {event_name} failed',\n        'message': (\n            u\"The error was as follows - <br>\" +\n            u\"<pre>{error_text}</pre>\"\n        )\n    },\n    MAIL_TO_EXPIRED_ORDERS: {\n        'recipient': 'User',\n        'subject': u'Tickets for {event_name} are still available ',\n        'message': (\n            u\"This is just a gentle reminder that the payment for your order {invoice_id} is still left.\" +\n            u\"<br/> The tickets for this event are still available. <a href='{order_url}'>Click here</a> to \"\n            u\"purchase your ticket for this event.\"\n            u\"<br><br><em>Looking forward to seeing you at the event.</em>\"\n        )\n    },\n    MONTHLY_PAYMENT_EMAIL: {\n        'recipient': 'Organizer',\n        'subject': u'{date} - Monthly service fee invoice for {event_name}',\n        'message': (\n            u\"The total service fee for the ticket sales of {event_name} in the month of {date} is {amount}.\" +\n            u\"<br/> That payment for the same has to be made in two weeks. <a href='{payment_url}'>Click here</a> to \"\n            u\"view your invoice and complete the payment.\"\n            u\"<br><br><em>Thank you for using {app_name}.</em>\"\n        ),\n        'sent_at': '1st day of the month'\n    },\n    MONTHLY_PAYMENT_FOLLOWUP_EMAIL: {\n        'recipient': 'Organizer',\n        'subject': u'Past Due: {date} - Monthly service fee invoice for {event_name}',\n        'message': (\n            u\"The total service fee for the ticket sales of {event_name} in the month of {date} is {amount}.\" +\n            u\"<br/> That payment for the same is past the due date. <a href='{payment_url}'>Click here</a> to \"\n            u\"view your invoice and complete the payment to prevent loss of functionality.\"\n            u\"<br><br><em>Thank you for using {app_name}.</em>\"\n        ),\n        'sent_at': '15th day of the month'\n    },\n    EVENT_IMPORTED: {\n        'recipient': 'User',\n        'subject': u'Event {event_name} has been imported',\n        'message': (\n            u\"Click on the following link to manage your event\" +\n            u\"<br> <a href='{event_url}'>Link</a>\"\n        )\n    },\n    EVENT_IMPORT_FAIL: {\n        'recipient': 'User',\n        'subject': u'Import of event failed',\n        'message': (\n            u\"The error was as follows - <br>\" +\n            u\"<pre>{error_text}</pre>\"\n        )\n    }\n}\n", "path": "app/api/helpers/system_mails.py"}], "after_files": [{"content": "\"\"\"\nAll the System mails\nRegister a mail here before using it\n\"\"\"\nfrom app.models.mail import INVITE_PAPERS, NEW_SESSION, USER_CONFIRM, \\\n    USER_REGISTER, PASSWORD_RESET, EVENT_ROLE, SESSION_ACCEPT_REJECT, \\\n    SESSION_SCHEDULE, NEXT_EVENT, EVENT_PUBLISH, AFTER_EVENT, USER_CHANGE_EMAIL, USER_REGISTER_WITH_PASSWORD, \\\n    TICKET_PURCHASED, EVENT_EXPORTED, EVENT_EXPORT_FAIL, MAIL_TO_EXPIRED_ORDERS, MONTHLY_PAYMENT_EMAIL, \\\n    MONTHLY_PAYMENT_FOLLOWUP_EMAIL, EVENT_IMPORTED, EVENT_IMPORT_FAIL, TICKET_PURCHASED_ORGANIZER, TICKET_CANCELLED, \\\n    TICKET_PURCHASED_ATTENDEE, PASSWORD_CHANGE\n\nMAILS = {\n    EVENT_PUBLISH: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'{event_name} is Live',\n        'message': (\n            u\"Hi {email}<br/>\" +\n            u\"Event, {event_name}, is up and running and ready for action. Go ahead and check it out.\" +\n            u\"<br/> Visit this link to view it: {link}\"\n        )\n    },\n    INVITE_PAPERS: {\n        'recipient': 'Speaker',\n        'subject': u'Invitation to Submit Papers for {event_name}',\n        'message': (\n            u\"Hi {email}<br/>\" +\n            u\"You are invited to submit papers for event: {event_name}\" +\n            u\"<br/> Visit this link to fill up details: {link}\"\n        )\n    },\n    SESSION_ACCEPT_REJECT: {\n        'recipient': 'Speaker',\n        'subject': u'Session {session_name} has been {acceptance}',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"The session <strong>{session_name}</strong> has been <strong>{acceptance}</strong> by the organizer. \" +\n            u\"<br/> Visit this link to view the session: {link}\"\n        )\n    },\n    SESSION_SCHEDULE: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'Schedule for Session {session_name} has been changed',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"The schedule for session <strong>{session_name}</strong> has been changed. \" +\n            u\"<br/> Visit this link to view the session: {link}\"\n        )\n    },\n    NEXT_EVENT: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'Event {event_name} is coming soon',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Here are the upcoming events: {up_coming_events} .Get ready!! \" +\n            u\"<br/> Visit this link to view the event: {link}\"\n        )\n    },\n    AFTER_EVENT: {\n        'recipient': 'Organizer, Speaker',\n        'subject': u'Event {event_name} is over',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Thank You for participating in our event. We hope you enjoyed it. \"\n            u\"Please check the list of more upcoming events\" +\n            u\"Here are the upcoming events: {upcoming_events} .Get ready!! \"\n        ),\n        'sent_at': '1 day after the event'\n    },\n    NEW_SESSION: {\n        'recipient': 'Organizer',\n        'subject': u'New session proposal for {event_name}',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"The event <strong>{event_name}</strong> has received a new session proposal. \" +\n            u\"<br/> Visit this link to view the session: {link}\"\n        )\n    },\n    USER_REGISTER: {\n        'recipient': 'User',\n        'subject': u'Account Created on {app_name}',\n        'message': (\n            u\"Your Account Has Been Created! Congratulations!\" +\n            u\"<br/> Your login: {email}\"\n        )\n    },\n    USER_REGISTER_WITH_PASSWORD: {\n        'recipient': 'User',\n        'subject': u'Welcome to {app_name}',\n        'message': (\n            u\"Your Account Has Been Created! Congratulations!\" +\n            u\"<br/> <strong>Your login:</strong><br><strong>Email:</strong> {email}<br>\"\n        )\n    },\n    USER_CONFIRM: {\n        'recipient': 'User',\n        'subject': u'Email Confirmation to Create Account for Open-Event',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Please visit this link to confirm your email: {link}\"\n        )\n    },\n    USER_CHANGE_EMAIL: {\n        'recipient': 'User',\n        'subject': u'Your email has been already changed',\n        'message': (\n            u\"Hi {email},<br/>\" +\n            u\"Your email has been already changed from {email} to {new_email}. You should verify your new email\"\n        )\n    },\n    PASSWORD_RESET: {\n        'recipient': 'User',\n        'subject': u'{app_name}: Password Reset',\n        'message': (\n            u\"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>\"\n        )\n    },\n    PASSWORD_CHANGE: {\n        'recipient': 'User',\n        'subject': u'{app_name}: Password Change',\n        'message': (\n            u\"Your password has been successfully changed. Please login with your new password.\"\n        )\n    },\n    EVENT_ROLE: {\n        'recipient': 'User',\n        'subject': u'Invitation to be {role} at {event}',\n        'message': (\n            u\"Hello {email},<br><br>\" +\n            u\"You've been invited to be a <strong>{role}</strong> at <strong>{event}</strong>.<br>\" +\n            u\"To accept the role please sign up using the following link: <a href='{link}' target='_blank'>Link</a>.\"\n        )\n    },\n    TICKET_PURCHASED: {\n        'recipient': 'User',\n        'subject': u'Your order invoice and tickets for {event_name} ({invoice_id}) ',\n        'message': (\n            u\"Hi, this is a confirmation mail of your tickets for the event {event_name}\"\n            u\"<br/>Your order has been processed successfully.\" +\n            u\"<br/> <a href='{pdf_url}'>Click here</a> to view/download your invoice.\"\n            u\"<br><br><em>Looking forward to seeing you at the event.\"\n            u\"<br/>Login to manage your orders at https://eventyay.com </em>\"\n        )\n    },\n    TICKET_PURCHASED_ATTENDEE: {\n        'recipient': 'Attendee',\n        'subject': u'Your tickets for {event_name} ({invoice_id}) ',\n        'message': (\n            u\"Hi, this is a confirmation mail of your tickets for the event {event_name}\"\n            u\"<br/>Your order has been processed successfully.\" +\n            u\"<br/> <a href='{pdf_url}'>Click here</a> to view/download your ticket.\"\n            u\"<br><br><em>Looking forward to seeing you at the event.\"\n        )\n    },\n\n    TICKET_PURCHASED_ORGANIZER: {\n        'recipient': 'Organizer, Coorganizer',\n        'subject': u'New ticket purchase for {event_name} by {buyer_email} ({invoice_id}) ',\n        'message': (\n            u\"Hi, {buyer_email} just bought tickets for the event {event_name}\"\n            u\"<br/>The order has been processed successfully.\" +\n            u\"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice.\"\n            u\"<br/>Login to manage the orders at https://eventyay.com </em>\"\n        )\n    },\n    TICKET_CANCELLED: {\n        'recipient': 'User',\n        'subject': u'Your order for {event_name} has been cancelled ({invoice_id})',\n        'message': (\n            u\"Hi,Your order for {event_name} has been cancelled has been cancelled by the organizer\"\n            u\"<br/>Please contact the organizer for more info\" +\n            u\"<br/>Message from the organizer: {cancel_note}\"\n            u\"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice.\"\n            u\"<br/>Login to manage the orders at https://eventyay.com </em>\"\n        )\n    },\n    EVENT_EXPORTED: {\n        'recipient': 'User',\n        'subject': u'Event {event_name} has been exported',\n        'message': (\n            u\"Click on the following link to download the event.\" +\n            u\"<br> <a href='{download_url}'>Download</a>\"\n        )\n    },\n    EVENT_EXPORT_FAIL: {\n        'recipient': 'User',\n        'subject': u'Export of event {event_name} failed',\n        'message': (\n            u\"The error was as follows - <br>\" +\n            u\"<pre>{error_text}</pre>\"\n        )\n    },\n    MAIL_TO_EXPIRED_ORDERS: {\n        'recipient': 'User',\n        'subject': u'Tickets for {event_name} are still available ',\n        'message': (\n            u\"This is just a gentle reminder that the payment for your order {invoice_id} is still left.\" +\n            u\"<br/> The tickets for this event are still available. <a href='{order_url}'>Click here</a> to \"\n            u\"purchase your ticket for this event.\"\n            u\"<br><br><em>Looking forward to seeing you at the event.</em>\"\n        )\n    },\n    MONTHLY_PAYMENT_EMAIL: {\n        'recipient': 'Organizer',\n        'subject': u'{date} - Monthly service fee invoice for {event_name}',\n        'message': (\n            u\"The total service fee for the ticket sales of {event_name} in the month of {date} is {amount}.\" +\n            u\"<br/> That payment for the same has to be made in two weeks. <a href='{payment_url}'>Click here</a> to \"\n            u\"view your invoice and complete the payment.\"\n            u\"<br><br><em>Thank you for using {app_name}.</em>\"\n        ),\n        'sent_at': '1st day of the month'\n    },\n    MONTHLY_PAYMENT_FOLLOWUP_EMAIL: {\n        'recipient': 'Organizer',\n        'subject': u'Past Due: {date} - Monthly service fee invoice for {event_name}',\n        'message': (\n            u\"The total service fee for the ticket sales of {event_name} in the month of {date} is {amount}.\" +\n            u\"<br/> That payment for the same is past the due date. <a href='{payment_url}'>Click here</a> to \"\n            u\"view your invoice and complete the payment to prevent loss of functionality.\"\n            u\"<br><br><em>Thank you for using {app_name}.</em>\"\n        ),\n        'sent_at': '15th day of the month'\n    },\n    EVENT_IMPORTED: {\n        'recipient': 'User',\n        'subject': u'Event {event_name} has been imported',\n        'message': (\n            u\"Click on the following link to manage your event\" +\n            u\"<br> <a href='{event_url}'>Link</a>\"\n        )\n    },\n    EVENT_IMPORT_FAIL: {\n        'recipient': 'User',\n        'subject': u'Import of event failed',\n        'message': (\n            u\"The error was as follows - <br>\" +\n            u\"<pre>{error_text}</pre>\"\n        )\n    }\n}\n", "path": "app/api/helpers/system_mails.py"}]}