lookit / lookit-api

Codebase for Lookit v2 and Experimenter v2. Includes an API. Docs: http://lookit.readthedocs.io/
https://lookit.mit.edu/
MIT License
10 stars 18 forks source link

Update custom email template with info about study and lab contact #1359

Open becky-gilbert opened 7 months ago

becky-gilbert commented 7 months ago

TL;DR

We'd like to add some automated text to the 'custom email' template (the one used for researchers sending emails to participants) indicating that the message was sent on behalf of a researcher/lab about a specific study, and letting the participant know how to reply to the researcher/lab.

Narrative

We recently had to change the way that we send 'custom emails', i.e. the messages sent from a study/researcher to participant. Specifically, these emails used to be sent from the lab email address but are now sent from the site's default MIT email, with the lab email as the reply-to address (see #1356).

We don't want families to be confused about this change, so it might help to have some automated text at the start of each of these emails explaining that the message was sent on behalf of a specific study/researcher, and letting the family know how they can get in touch with the researcher/lab. There are a few added benefits of these changes:

List of changes

This is taken from @ianchandlercampbell's google doc. I will update this if that spec changes, and Ian please feel free to edit this or comment below if anything is incorrect.

In the custom email template, add the following:

This is an email for [child.name] from [lab.name] for [study.name]. You may reply to this email to message directly with the researchers at [lab.name] or email them at [lab.email] if you have other questions.

We'll try adding this both above and below the {{ custom_message }} and then decided which is better.

(The changes below were originally included in this issue but have now been moved to a separate issue: ) ~In the base email template (which is used for both custom emails and study announcement emails):~ ~- Add "CHS" to the update preferences and unsubscribe-all text:~ ~> "Update your CHS email preferences"~ ~> "Unsubscribe from all CHS emails"~ ~- Under the unsubscribe link, add the linked text:~ ~> "Questions or feedback for Children Helping Science?"~ ~which opens an email sent to childrenhelpingscience@gmail.com with the subject line "CHS Family Feedback or Question"~

Screenshots

Here's what our custom emails currently look like on the production site.

Researcher view - writing the message:

Screenshot 2024-03-06 at 3 26 25 PM

Participant view - receiving the message Note that this is from the live site where our pending changes have not been released yet, so there is no unsubscribe-all link yet, and the email is sent from the lab account (in this example: lookit+demo@mit.edu).

Screenshot 2024-03-06 at 3 27 00 PM

becky-gilbert commented 7 months ago

Update: this issue is on hold until we figure out whether/how to (1) handle emails sent to multiple families and (2) add the child's name to the view/message context.