lookit / lookit/lookit-api

Update custom email template with info about study and lab contact

Open
#1,359 1 comment 0 reactions 2 assignees Assigned to @okaycj View on GitHub
Dominant language
Python
Stars
12
Forks
21
Avg merge
5d 19h
Merged PRs (30d)
5

Description

## 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:
- Sending this message from the site's email address makes it clearer to families that researchers sent the message _via the website_ (as opposed to getting ahold of their participant's email addresses and contacting them off the site, which is against our T&Cs).
- This will help families easily see what study the message is related to, since currently that information is not found in these emails unless the researcher remembers to add it to their custom message.

## 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](https://github.com/lookit/lookit-api/assets/9041788/3016cbbb-056c-47f8-8bdf-34cc84d5306c)

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](https://github.com/lookit/lookit-api/assets/9041788/2bf3da08-6a05-44ff-aecd-7b9e647a0046)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.