Skip to content

Commit

Permalink
fixing email
Browse files Browse the repository at this point in the history
  • Loading branch information
abhsurek committed May 11, 2021
1 parent f0eca26 commit d116073
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions email.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const nodemailer = require("nodemailer")
, content = require('./email_content');


// Setting up SMTP transport connection (Using SendGrid)
/*// Setting up SMTP transport connection (Using SendGrid)
let transport = nodemailer.createTransport({
host: "smtp.sendgrid.net",
port: 465,
Expand All @@ -13,7 +13,7 @@ let transport = nodemailer.createTransport({
pass: process.env.SENDGRID_API_KEY,
},
debug: true
});
});*/

// for running in local machine, use below transport config
/*let transport = nodemailer.createTransport({
Expand All @@ -26,7 +26,7 @@ let transport = nodemailer.createTransport({
});*/

// for sending mail using AWS SES
/*let transport = nodemailer.createTransport({
let transport = nodemailer.createTransport({
host: "email-smtp.ap-south-1.amazonaws.com",
port: 465,
secure: true, // true for 465, false for other ports
Expand All @@ -35,7 +35,7 @@ let transport = nodemailer.createTransport({
pass: process.env.SMTP_PASS,
},
debug: true
});*/
});


// Send email notification
Expand Down

0 comments on commit d116073

Please sign in to comment.