This sample will show you to easily send an email with the Nylas Node.js SDK.
- Node.js v16.x
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
$ npm i
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
Visit our Nylas Node.js SDK documentation to learn more.