In this article, we will learn how to send emails in node.js. We all receive email on daily basis, and it is one of the most crucial forms of communication today so knowing how to send one using is quite awesome and useful node.js Introduction to Superface.ai I am going to use for API integration as it makes the integration super easy. I don’t have to deal with API docs, and I can use many providers using the same interface. Furthermore, I can use more ready-made API use cases from . Superface Superface catalog Learn one to conquer all. Create a Node.js Project mkdir sendEmail cd sendEmail npm init -y Installing Superface SDK npm i @superfaceai/one-sdk Then choose your use case. We are going to use . Send Email | Superface Now you have to configure the provider you want to use I am going with SendGrid. First, create your account and get your api key verify Single Sender Verification I am using to get some temporary emails. https://emailfake.com/ Back in , copy and paste the code from the example and replace the token with your key. Superface const { SuperfaceClient } = require('@superfaceai/one-sdk'); const sdk = new SuperfaceClient(); export default async function run(req,res) { const profile = await sdk.getProfile('communication/send-email@2.1.0') // Use the profile const result = await profile .getUseCase('SendEmail') .perform({ from: 'cedesdxesxd@24mail.top', to: 'cedesdxesxd@omdiaco.com', subject: 'Your order has been shipped!', text: 'Hello Cedes, your recent order on Our Shop has been shipped.', }, { provider: 'sendgrid', security: { bearer_token: { token: '<your token from sendgrid>' } } }); try { const data = result.unwrap(); res.send(data) } catch (error) { console.error(error); } } run() Now to check if everything works, run the application: node index.js We can see the email is received. You can also send attachments like pdf files and more. To learn how to send email in Node.js — Sending Emails with Node.js using Superface.ai — YouTube Also Published Here