-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template to send emails #15
Conversation
src/pages/api/sendEmail.ts
Outdated
const transporter = nodemailer.createTransport({ | ||
service: 'gmail', | ||
auth: { | ||
user: ['kellypham@uwblueprint.org'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put these variables in the .env file instead of hardcoding them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please contact me to put the email / password in the hashicorp vault. I feel like we should probably use the sistema email instead of kelly's so let me know when you would like to set that up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Please add the following to the .env.sample file: EMAIL_PASS= |
tsconfig.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"compilerOptions": { | |||
"target": "es5", | |||
"target": "es2017", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just change this back to es5. Other than that, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change it back lol.
@ChinemeremChigbo could you please help me understand the ticket a bit more. To the best of my understanding, we're trying to do the following: The email follows a template. Example :
Q1: In the long term / actual product we want the admin to be able to modify this template through a GUI...right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's really cool that you were able to get this running with such succinct code. I was expecting NodeMailer to be really tough to get working, but you made it look like easy like a pro dev :-)
src/pages/email.tsx
Outdated
}, | ||
body: JSON.stringify({ | ||
to: emailRecipients, | ||
subject: 'Hello World', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add another Input/TextArea in the form and get the subject from there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@RahulTandon1 to answer your questions: |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're good to ship.
Sorry for all my delays Kelly.
Thank you!
d1305de
to
082cb2d
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
082cb2d
to
f6865ad
Compare
Notion ticket link
Email Reminders
Implementation description
Steps to test
http://localhost:3000/email
What should reviewers focus on?
Checklist