Skip to content

Commit

Permalink
#10 tries using sendgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
dangerdak committed Nov 28, 2017
1 parent 4bbf18a commit 45737e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/controllers/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ exports.post = (req, res) => {
const pdfData = Buffer.concat(buffers);
// nodemailer
const smtpConfig = {
host: process.env.MAILGUN_SMTP_SERVER,
host: 'smtp.sendgrid.net',
port: 587,
auth: {
user: process.env.MAILGUN_SMTP_LOGIN,
pass: process.env.MAILGUN_SMTP_PASSWORD,
user: process.env.SENDGRID_USERNAME,
pass: process.env.SENDGRID_PASSWORD,
},
};
const transporter = nodemailer.createTransport(smtpConfig);
Expand Down

0 comments on commit 45737e9

Please sign in to comment.