Skip to content

nylas-samples/node-email-send

node-email-send

This sample will show you to easily send an email with the Nylas Node.js SDK.

Setup

System dependencies

  • Node.js v16.x

Gather environment variables

You'll need the following values:

NYLAS_API_KEY = ""
NYLAS_API_URI = ""
NYLAS_GRANT_ID = ""
RECIPIENT_EMAIL = ""

Add the above values to a new .env file:

$ touch .env # Then add your env variables

Install dependencies

$ npm i

Usage

Run the script using the node command:

$ node index.js

When your message is successfully sent, you'll get the following output in your terminal:

Email Send: send message details

Learn more

Visit our Nylas Node.js SDK documentation to learn more.

About

Send an email with the Nylas Node.js SDK!

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •