Skip to content
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

Worked on email templete #8

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft

Worked on email templete #8

wants to merge 19 commits into from

Conversation

Santan24
Copy link
Contributor

No description provided.

app.js Outdated Show resolved Hide resolved
const transporter = nodemailer.createTransport({
service: "gmail",
auth: {
user: "[email protected]",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use any credentials used in config files or default.json. Can be used at multiple places and will have to update at one place only, if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

`,
};

try {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should try-catch the whole function, and return the error. Anything could fail not just the mail.

app.js Outdated
@@ -4,11 +4,12 @@ const cors = require("cors");
const bcryptjs = require("bcryptjs");
require("dotenv").config();
require("./db/connectionDB");
require('./models/user')
require('./models/Survey')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be /survey. Filename case should match always.

@Santan24 Santan24 marked this pull request as draft June 16, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants