undebate icon indicating copy to clipboard operation
undebate copied to clipboard

Issue#274 lookup

Open epg323 opened this issue 4 years ago • 0 comments

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="[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.

epg323 avatar Oct 20 '20 21:10 epg323