undebate
undebate copied to clipboard
Issue#274 lookup
Close #274
I am hoping to get feedback for the UI and code.

Overview: The user enters their name and email. Then they will receive 1 of 3 emails:
-
If they have one recording link they will receive an email with 1 link.
-
If they have multiple links an email will be sent to David. (In development it should be yourself)
-
If the system is unable to find a recording, the user will receive an email telling them to contact ballotpedia.
You should have the following variables in your environment:
export SENDINBLUE_TEMPLATE_ID_CANDIDATE="1" // Number of email template for when the user has exactly one link
export SENDINBLUE_TEMPLATE_ID_MANAGER="2" // Number of email template for when the user has multiple links
export SENDINBLUE_TEMPLATE_ID_SEND_BP_INFO="3" // Number of email template for when we are unable to find links
export EMAIL_MANAGER="[email protected]" // For development, emails should be sent to yourself and not to the emails of your test cases
export HOSTNAME='localhost:3011' // This is required so the user gets a complete url , not just the uri
ToDo: Discuss with @ddfridley the email templates.