Skip to content

Instantly share code, notes, and snippets.

@alexandermckay
Created October 19, 2019 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandermckay/b8f1b9e1b045a455a1a785dc4fbf514d to your computer and use it in GitHub Desktop.
Save alexandermckay/b8f1b9e1b045a455a1a785dc4fbf514d to your computer and use it in GitHub Desktop.
improving-the-function.js
const {
gmail: { password, recipient, sender },
} = config();
const transporter = createTransport({
service: 'gmail',
auth: {
user: sender,
pass: password,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment