-
Notifications
You must be signed in to change notification settings - Fork 317
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
Backend: Welcome email for New Subscribers added #1121
Backend: Welcome email for New Subscribers added #1121
Conversation
Hey @Kajol-Kumari Please review and merge it |
|
||
module.exports = async (req, res, next) => { | ||
const transporter = nodemailer.createTransport({ | ||
type: 'SMTP', | ||
host: config.EMAIL_HOST, |
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.
can we add env.sample file and add these env variables with required values/placeholders(in case of credential)
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 think no need for env.sample
file because, .env
file already there with required values/placeholders.
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.
Then add the new env variables that got introduced in this pr there itself. It will be easier for new developers
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.
There is no new varaible used here and they already exists in .env
file
Issue that this pull request solves
Closes: #1120
Proposed changes
For every new user, welcome email added for new subscriber added.
Types of changes
Put an
x
in the boxes that applyScreenshots
Other information
Any other information that is important to this pull request