Build the future of communications.
Start building for free

Node.js posts

  • By Dhruv Patel
    Receive SMS Alerts for Email Opens and Clicks with Twilio SendGrid and Node.js SMS alerts for email opens and clicks header image (2)

    When it comes to messaging applications, read receipts are a common feature that allow you to know if your recipient has read your message. For email applications, this feature is very uncommon; however, when sending marketing and especially important emails, it's sometimes vital to know and keep track of whether your recipients have opened and read your email.

    When using Twilio SendGrid, keeping track of email engagement is seamless through Event Webhooks. Event Webhooks not only track the delivery status of your emails but also engagement events such as if an email has been opened or a link within an email has been clicked. Pairing open and click tracking for emails with Twilio’s Programmable SMS API will ensure you’re up to date on the status of your important emails.

    In this tutorial you’ll learn how to track and send SMS alerts for open and click events for your …

    Read More
  • By Dhruv Patel
    Twilio SendGridとNode.jsで登録者にメール通知を送信 Send Email Notifications to Subscribers with SendGrid and Node.js Header JP

    この記事はDhruv Patelこちらで公開した記事(英語)を日本語化したものです。



    本稿では、メールによる価格通知システムを構築する方法を学びます。Sneaks APIを使用してスニーカーの価格を追跡し、特定のスニーカーの価格が下がるとTwilio SendGridのメールアラートを配信するシステムです。




    このセクションでは、まずTwilio SendGridアカウントを設定し、メール通知システムのベースを構築することで、環境設定を行います。

    Twilio SendGridのAPIキーを作成

    まず、Twilio SendGridのアカウントにログインし、管理コンソールの [API Keys] 画面に移動します。右上の [Create API Key](APIキーを作成)ボタンをクリックします。


    APIキーの名前を指定し、[Create & View](作成と表示)ボ …

    Read More
  • By Sam Agnew
    Using Event Webhooks for Emails with Twilio SendGrid in Node.js Copy of C02 Blog Text.png

    When sending emails with Twilio SendGrid, sometimes you want to be able to keep track of the status of these emails, such as when a recipient opens the message or reports it as spam. This is made possible by the use of Event Webhooks. Let's walk through how to use Node.js and Express to track the status of emails that you send.

    Prerequisites and dependencies

    Make sure you have the following before moving on:

    • Node.js and npm installed (do this first if you haven't already)
    • A free SendGrid account
    • An email address to test out this project
    • A domain on which you will receive emails. For the purposes of this article, I’m going to use You will need to replace it with your own domain name.

    We'll need to install the node modules for SendGrid and Express. To install these npm modules, navigate to the directory where …

    Read More
  • By Nathaniel Okenwa
    SendGridとNode.jsで添付ファイル付きメールを送信する方法 SendGridとNode.jsで添付ファイル付きメールを送信する方法

    この記事はNathaniel Okenwaこちらで公開した記事(英語)を日本語化したものです。

    Node.jsアプリケーションからTwilio SendGrid APIを使用してメールを送信する際、メールにファイルを添付したい場合もあります。SendGrid Email APIなら、とても簡単に送信するメールにファイルを添付できます。本稿では、SendGrid経由で送信されるメールにドキュメントを添付する方法をご紹介します。




    Twilio SendGridアカウントでAPIキーを作成します。APIキーの名前はお好きなもので構いません。APIキーは後で使用するため、必ず記録しておいてください。







    Read More
  • By Phil Nash
    How to build an email contact form with SendGrid and Node.js How to build an email contact form with SendGrid and Node.js

    Displaying your email address on a website can result in your email being scraped and used for spam. One way to get around this, but still allow people to contact you from your website, is to build a contact form.

    In this post you will build a contact form using SendGrid to deliver emails to your inbox without exposing your email address.

    You will build the project with Twilio Functions, but you could adapt the code to use in any Node.js environment.

    How is this different to sending an email with an API?

    When someone fills in a contact form, you might expect to receive an email in your inbox from their email address. However, to maintain a good email sending reputation, SendGrid only allows you to send emails from addresses that you have verified individually or from domains you have authenticated.

    So, instead of using the submitted …

    Read More
  • By Dhruv Patel
    How to Send SMTP Emails in Node.js With SendGrid Send Email in Node.js Using SMTP with Twilio SendGrid

    When it comes to email services in application development, a hosted email API – such as Twilio SendGrid – is the way to go as it offers ways to customize the setup to your needs. However, you may want to send emails through SMTP (Simple Mail Transfer Protocol) if it is already on your existing platform and since it is an email standard that's used universally. Luckily, Twilio SendGrid offers an SMTP Relay service without having to set up your own server. You’ll also still have access to in-depth metrics, analytics tracking, increased deliverability rates and even more SendGrid features through the X-SMTPAPI header.

    In this tutorial, you’ll learn how to send out emails through Twilio SendGrid’s SMTP Relay in Node.js.

    If you have the option and are still deciding whether to integrate SendGrid through our API or SMTP Relay, we highly recommend using our Web API. SMTP …

    Read More
  • By Ted Gieschen
    How to send SMS from Microsoft Excel using Twilio Programmable Messaging How to send SMS from Microsoft Excel using Twilio Programmable Messaging

    Using Twilio, you can programmatically send customized SMS the way you want to, but your users may just want to send out SMS from a simple spreadsheet of their customers, without having to worry about how to program. Luckily, you can add that functionality to an Excel spreadsheet for them with Microsoft Office Scripts.

    In this post, you will learn how to build a tool to send SMS to your customers from a Microsoft Excel sheet using Microsoft Office Scripts.

    An Excel spreadsheet containing phone numbers and SMS messages. The Delivery Attempt Status column starts of empty. When the bulk SMS tool runs, status column is filled out row by row with the result of sending SMS.

    Are you using Google Sheets instead of Excel? Learn how to send SMS notifications from Google Sheets with Twilio.


    To build this solution, you will need:

    Read More
  • By Dhruv Patel
    Build an Email Newsletter Application with Express, Node.js and SendGrid Newsletter app node.js sendgrid header


    Consumers of all kinds are constantly having information sent their way.

    But if you’re looking for a way to connect and establish a touch point with your audience, sending out a newsletter is a great way to grab their attention. Newsletters are a must-have for businesses and can build engagement with new and existing customers.

    Twilio SendGrid has the perfect solution when it comes to building a newsletter system: Marketing Campaigns. And although there are many non-technical services available that make this process painless, building out your own system allows you to have complete transparency and customization of the system.

    The mighty SendGrid API is a terrific solution to create your own newsletter system. With marketing tools such as Email List Management, the API doesn’t lose out on controllability.

    In this post, you’ll learn how to build an app that allows users to sign up, confirm, and …

    Read More
  • By Ashley Boucher
    Node.jsからExpressへファイルのアップロードを処理する方法 Node.jsからExpressへファイルのアップロードを処理する方法

    この記事はAshley Boucherこちらで公開した記事(英語)を日本語化したものです。

    最近、Node.jsでMarkdownでの記事執筆のためのCLIツールを開発していました。ローカルの.mdファイルを解析して、書式設定し、.docxに変換してから、Google DocファイルとしてGoogleドライブにアップロードするというもので、このすべてをターミナルから1つのコマンドで実行します。





    • マシンにインストールされているNode.jsとパッケージマネージャー(npm)
    • テキストエディタ …
    Read More
  • By Vanshika Rana
    Receive Daily News Emails in Node.js with Twilio SendGrid Daily News Updates Node.js Sendgrid Header


    There is so much going on around the globe every day, sometimes, it’s hard to keep up with it all. As life gets busier and busier, you are left with very little in the daytime to read the news. What if you could have the latest news sent to your inbox every day?

    In this article, you will learn how to automate and receive daily news updates in Node.js using Twilio SendGrid and News API .


    Before proceeding, you will need the following:

    Configure the Environment

    Before you begin writing code, you must first prepare the environment to meet the needs of your …

    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.