Skip to content

Commit 6e9791a

Browse files
Merge pull request #545 from biocore/csymons_email_template_updates
Updates to Automated Emails
2 parents 75a9867 + ae636a3 commit 6e9791a

8 files changed

+38
-34
lines changed

microsetta_private_api/admin/email_templates.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class EmailMessage(Enum):
2626
EventSubtype.EMAIL_ACTIVATION
2727
)
2828
incorrect_sample_type = (
29-
gettext("Your Microsetta Initiative status update: attention needed"),
29+
gettext("Microsetta Initiative update: attention needed"),
3030
"email/incorrect_sample_type.jinja2",
3131
("contact_name", "sample_barcode", "recorded_type", "received_type",
3232
"resolution_url"),
@@ -35,21 +35,21 @@ class EmailMessage(Enum):
3535
)
3636
missing_sample_info = (
3737
gettext(
38-
"Your Microsetta Initiative status update: information needed"),
38+
"Microsetta Initiative update: information needed"),
3939
"email/missing_sample_info.jinja2",
4040
("contact_name", "sample_barcode", "received_type", "resolution_url"),
4141
EventType.EMAIL,
4242
EventSubtype.EMAIL_MISSING_SAMPLE_INFO
4343
)
4444
sample_is_valid = (
45-
gettext("Your Microsetta Initiative status update and next steps"),
45+
gettext("We received your Microsetta Initiative sample"),
4646
"email/sample_is_valid.jinja2",
4747
("contact_name",),
4848
EventType.EMAIL,
4949
EventSubtype.EMAIL_SAMPLE_IS_VALID
5050
)
5151
no_associated_source = (
52-
gettext("Your Microsetta Initiative status update: "
52+
gettext("Microsetta Initiative update: "
5353
"critical information needed"),
5454
"email/no_associated_source.jinja2",
5555
("contact_name", "sample_barcode", "resolution_url"),
@@ -65,7 +65,7 @@ class EmailMessage(Enum):
6565
)
6666
address_invalid = (
6767
gettext(
68-
"Your Microsetta Initiative status update: information needed"),
68+
"Microsetta Initiative update: information needed"),
6969
"email/address_invalid.jinja2",
7070
("contact_name", "resolution_url"),
7171
EventType.EMAIL,
@@ -81,23 +81,23 @@ class EmailMessage(Enum):
8181
)
8282
thank_you_with_kit = (
8383
gettext(
84-
"Registration code & kit update!"),
84+
"Microsetta Initiative registration code & kit update"),
8585
"email/thank_you_with_kit.jinja2",
8686
("first_name", "registration_code", "interface_endpoint"),
8787
EventType.EMAIL,
8888
EventSubtype.EMAIL_THANK_YOU_WITH_KIT
8989
)
9090
thank_you_no_kit = (
9191
gettext(
92-
"Your questionnaire is ready!"),
92+
"Your Microsetta Initiative questionnaire is ready"),
9393
"email/thank_you_no_kit.jinja2",
9494
("first_name", "registration_code", "interface_endpoint"),
9595
EventType.EMAIL,
9696
EventSubtype.EMAIL_THANK_YOU_NO_KIT
9797
)
9898
kit_tracking_number = (
9999
gettext(
100-
"Your kit is on its way!"),
100+
"Your Microsetta Initiative kit has shipped"),
101101
"email/kit_tracking_number.jinja2",
102102
("first_name", "tracking_number"),
103103
EventType.EMAIL,

microsetta_private_api/templates/email/address_invalid.jinja2

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@
221221
</p>
222222
<p class="c1"><span class="c0">&nbsp;</span></p>
223223
<p class="c8 c9">
224-
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We are writing as we've encountered an issue processing your transaction, and we would appreciate your assistance in helping to resolve this matter.") }}</span>
224+
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have encountered an issue processing your transaction, and we would appreciate your assistance in helping to resolve this matter.") }}</span>
225225

226-
<span class="c4">{{ _("Specifically, we were unable to verify the address to which you requested we ship you kit(s).") }}</span>
226+
<span class="c4">{{ _("Specifically, we were unable to verify the address to which you requested we ship your kit(s).") }}</span>
227227
</p>
228228
<p class="c2">
229229
<span class="c0"></span>

microsetta_private_api/templates/email/incorrect_sample_type.jinja2

+8-2
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,16 @@
233233
<span class="c0"></span>
234234
</p>
235235
<p class="c8 c9">
236-
<span class="c0">{{ _("Our lab will need verification of the type of sample you sent in before they can begin processing it to ensure that your sample is sequenced correctly. If you know the sample type then please reply to this email") }}<a href = "mailto: [email protected]">[email protected]</a> {{ _("with this information. We will then update your profile so the collection can be appropriately associated.") }}</span>
236+
<span class="c0">{{ _("Our lab will need verification of the type of sample you sent in before they can begin processing it to ensure that your sample is sequenced correctly.") }}</span>
237+
</p>
238+
<p class="c2">
239+
<span class="c0"></span>
240+
</p>
241+
<p class="c8 c9">
242+
<span class="c0">{{ _("Please reply to this email with a confirmation of the sample type. We will then update your sample record so the specimen can be processed appropriately.") }}</span>
237243
<p class="c1 c5"><span class="c0"></span></p>
238244
<p class="c1">
239-
<span class="c0">{{ _("If you have any questions, please reply to us at ") }}<a href = "mailto: [email protected]">[email protected]</a>. {{ _("Thank you for supporting our project.") }}</span>
245+
<span class="c0">{{ _("If you have any questions, please reply to us at ") }}<a href = "mailto: [email protected]">[email protected]</a>.</span>
240246
</p>
241247
<p class="c1"><span class="c0">&nbsp;</span></p>
242248
<p class="c1">

microsetta_private_api/templates/email/missing_sample_info.jinja2

+6-6
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
</p>
222222
<p class="c1"><span class="c0">&nbsp;</span></p>
223223
<p class="c8 c9">
224-
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We are writing as we've encountered an issue processing your sample, and we would appreciate your assistance in helping to resolve this matter. To make sure we have the correct information, we require you to confirm the type of sample you sent and the collection date and time with our team. Please click on the URL below to view the collection information.") }}</span>
224+
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your sample with the barcode ID specified below, but need additional information before we can proceed with processing it. Please click on the barcode to view the information you have already logged.") }}</span>
225225
</p>
226226
<p class="c2"><span class="c0"></span></p>
227227
<p class="c8 c9">
@@ -233,7 +233,7 @@
233233
<span class="c0"></span>
234234
</p>
235235
<p class="c8 c9">
236-
<span class="c0">{{ _("Based on what we can see, we think the collection type is:") }}</span>
236+
<span class="c0">{{ _("Based on what we can see, we think the sample type is:") }}</span>
237237
</p>
238238
<p class="c8 c9">
239239
<span class="c0">&nbsp;</span>
@@ -247,13 +247,13 @@
247247
<span class="c0">&nbsp;</span>
248248
</p>
249249
<p class="c8 c9">
250-
<span class="c0">{{ _("We require this information in order to process the collection in compliance with our human subjects research protocol. Therefore, editing online account information is currently locked as a preventative measure to ensure we meet regulations. Not to worry - by replying to this email our team is ready to assist you with updating the following information.") }}</span>
250+
<span class="c0">{{ _("Please reply to this email with the following information.") }}</span>
251251
</p>
252252
<p class="c8 c9">
253253
<ul class="c8 c9">
254-
<li><span class="c0">{{ _("Collection date") }}</span></li>
255-
<li><span class="c0">{{ _("Collection time") }}</span></li>
256-
<li><span class="c0">{{ _("Collection type") }}</span></li>
254+
<li><span class="c0">{{ _("Sample type (e.g. stool, mouth, skin)") }}</span></li>
255+
<li><span class="c0">{{ _("Collection date (can be approximate)") }}</span></li>
256+
<li><span class="c0">{{ _("Collection time (can be approximate)") }}</span></li>
257257
</ul>
258258
</p>
259259
<p class="c1 c5">

microsetta_private_api/templates/email/no_associated_source.jinja2

+7-9
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@
221221
</p>
222222
<p class="c1"><span class="c0">&nbsp;</span></p>
223223
<p class="c8 c9">
224-
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We are writing as we've encountered an issue processing your collection, and we would appreciate your assistance in helping to resolve this matter.") }}</span>
225-
226-
<span class="c4">{{ _("Specifically, the following sample sent to the lab needs more information to be included before it can be processed:") }}</span>
224+
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your sample with the barcode ID specified below, but need additional information before we can proceed with processing it.") }}</span>
227225
</p>
228226
<p class="c2"><span class="c0"></span></p>
229227
<p class="c8 c9">
@@ -235,7 +233,7 @@
235233
<span class="c0"></span>
236234
</p>
237235
<p class="c8 c9">
238-
<span class="c0">{{ _("We require this information to process this specimen in compliance with our human subjects research protocol. Please log back into the participant website by clicking or copying the following URL:") }}</span>
236+
<span class="c0">{{ _("Please log back into the participant website by clicking or copying the following URL:") }}</span>
239237
</p>
240238
<p class="c8 c9">
241239
<span class="c0">&nbsp;</span>
@@ -249,20 +247,20 @@
249247
<span class="c0">&nbsp;</span>
250248
</p>
251249
<p class="c8 c9">
252-
<span class="c0">{{ _('After accessing your account using the above URL, you will need to create a source by clicking on one of the buttons under the "Sources" section.') }}</span>
250+
<span class="c0">{{ _('After logging in to your account, you will need to create a profile.') }}</span>
253251
</p>
254252
<p class="c8 c9">
255253
<span class="c0">&nbsp;</span>
256254
</p>
257255
<p class="c8 c9">
258-
<span class="c0">{{ _("Once a source has been created, please reply to this email with the following information so that we can link the collection to your source:") }}</span>
256+
<span class="c0">{{ _("Once a profile has been created, please reply to this email with the following information so that we can link the sample to your profile:") }}</span>
259257
</p>
260258
<p class="c2"><span class="c0"></span></p>
261259
<p class="c8 c9">
262260
<ul class="c8 c9">
263-
<li><span class="c0">{{ _("Collection date") }}</span></li>
264-
<li><span class="c0">{{ _("Collection time") }}</span></li>
265-
<li><span class="c0">{{ _("Collection type") }}</span></li>
261+
<li><span class="c0">{{ _("Sample type (e.g. stool, mouth, skin)") }}</span></li>
262+
<li><span class="c0">{{ _("Collection date (can be approximate)") }}</span></li>
263+
<li><span class="c0">{{ _("Collection time (can be approximate)") }}</span></li>
266264
</ul>
267265
</p>
268266
<p class="c8 c9">

microsetta_private_api/templates/email/sample_is_valid.jinja2

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@
221221
</p>
222222
<p class="c1"><span class="c0">&nbsp;</span></p>
223223
<p class="c8 c9">
224-
<span class="c0">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your microbiome collection, and it is now in the processing queue. Samples are processed within 1 – 3 months. Once sequenced, you will receive an update with a link to your results.") }}</span>
224+
<span class="c0">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your microbiome sample. Samples are typically processed within 1 – 3 months. If you are part of a specific study, the timeframe could be longer. Once sequenced, you will receive an update and a report will be available in your online account.") }}</span>
225225
</p>
226226
<p class="c1"><span class="c0">&nbsp;</span></p>
227227
<p class="c1">
228-
<span class="c0">{{ _("If you have any questions, please reply to us at ") }}<a href = "mailto: [email protected]">[email protected]</a>. {{ _("Thank you for supporting our project.") }}</span>
228+
<span class="c0">{{ _("Thank you for supporting our project.") }}</span>
229229
</p>
230230
<p class="c1"><span class="c0">&nbsp;</span></p>
231231
<p class="c1">

microsetta_private_api/templates/email/thank_you_no_kit.jinja2

+3-3
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@
227227
<span class="c0"></span>
228228
</p>
229229
<p class="c8 c9">
230-
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the TMI website to create your account, profile, and fill in the initial forms and surveys. <strong><i>Your email address is linked to this information and must be the same email used to set up your account</i></strong>.") }}</span>
230+
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the Microsetta website to sign up, create your profile, and fill in the initial forms and surveys. <strong><i>Ensure that the email address you use to create your account matches the one associated with this information</i></strong>.") }}</span>
231231
</p>
232232
<p class="c8 c9">
233233
<span class="c0">&nbsp;</span>
234234
</p>
235235
<p class="c8 c9">
236-
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Create Account or Login") }}]</strong></a></span>
236+
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Sign Up or Login") }}]</strong></a></span>
237237
</p>
238238
<p class="c8 c9">
239239
<span class="c0">&nbsp;</span>
@@ -252,7 +252,7 @@
252252
</p>
253253
<p class="c8 c9">
254254
<span class="c0">
255-
{{ _("Thank you for your participation! If you have any questions, please visit our <a href='https://microsetta.ucsd.edu/participant-resources/faqs/'>FAQs</a> and <a href='https://microsetta.ucsd.edu/participant-resources/instructions/'>instructions</a> pages, or you can email us at ") }}<a href="mailto:[email protected]">[email protected]</a>.<br />
255+
{{ _("Thank you for your participation! If you have any questions, please visit our <a href='https://microsetta.ucsd.edu/participant-resources/faqs/'>FAQs</a>, or you can email us at ") }}<a href="mailto:[email protected]">[email protected]</a>.<br />
256256
</span>
257257
</p>
258258
<p class="c8 c9">

microsetta_private_api/templates/email/thank_you_with_kit.jinja2

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@
227227
<span class="c0"></span>
228228
</p>
229229
<p class="c8 c9">
230-
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the TMI website to create your account, profile, and fill in the initial forms and surveys. <strong><i>Your email address is linked to this information and must be the same email used to set up your account</i></strong>.") }}</span>
230+
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the Microsetta website to sign up, create your profile, and fill in the initial forms and surveys. <strong><i>Ensure that the email address you use to create your account matches the one associated with this information</i></strong>.") }}</span>
231231
</p>
232232
<p class="c8 c9">
233233
<span class="c0">&nbsp;</span>
234234
</p>
235235
<p class="c8 c9">
236-
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Create Account or Login") }}]</strong></a></span>
236+
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Sign Up or Login") }}]</strong></a></span>
237237
</p>
238238
<p class="c8 c9">
239239
<span class="c0">&nbsp;</span>

0 commit comments

Comments
 (0)