EnCiv / undebate

Not debates, but recorded online video Q&A with candidates so voters can quickly can get to know them, for every candidate, for every election, across the US.
Other
20 stars 14 forks source link

Issue#274 lookup #291

Open epg323 opened 3 years ago

epg323 commented 3 years ago

Close #274

I am hoping to get feedback for the UI and code.

Screen Shot 2020-10-20 at 2 11 51 PM

Overview: The user enters their name and email. Then they will receive 1 of 3 emails:

1) If they have one recording link they will receive an email with 1 link.

2) If they have multiple links an email will be sent to David. (In development it should be yourself)

3) 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="example@gmail.com" // 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.