Skip to content

Instantly share code, notes, and snippets.

@mhemrg
Created January 4, 2021 13:46
Show Gist options
  • Save mhemrg/d8772804e8e4fc788be620e6dde8ccae to your computer and use it in GitHub Desktop.
Save mhemrg/d8772804e8e4fc788be620e6dde8ccae to your computer and use it in GitHub Desktop.
Email example
transporter.sendMail({ from: 'password@jedalgame.ir', to: email, subject: 'password reset', html: '<h1>hi</h1>' })
.then(() => console.log('Email sent.'))
.catch(console.error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment