Build the future of communications.
Start building for free

SendGrid posts

  • By Volkan Paksoy
    Send Emails with C#, Handlebars templating, and Dynamic Email Templates Send Emails with C#, Handlebars templating, and Dynamic Email Templates

    Email communication is an essential aspect of most businesses. In this post, you will look into the basics of sending emails with the Twilio SendGrid Email API and sending templated emails with the Handlebars templating language. Finally, you will finish by putting it together in a sample project that sends emails based on a template.

    Prerequisites

    You'll need the following things for this tutorial:

    Set Up SendGrid

    API Key

    First things first: To use the SendGrid API, you need an API key. Create one by heading over to the …

    Read More
  • By Néstor Campos
    Use Razor Layouts in FluentEmail to reuse Headers and Footers Use Razor Layouts in FluentEmail to reuse Headers and Footers

    You can quickly and intuitively send emails using the FluentEmail library for .NET, but once you send many different emails in your project, you have to be able to organize your email templates in a good way to reuse content and enforce consistency in terms of format and design. Luckily, Razor Layouts can help you reuse parts of your templates like headers and footers.

    Prerequisites

    You will need the following for your development environment:

    You can find the source code of this tutorial in this GitHub repository.

    Set up an SMTP server

    To be able to send emails at scale, you'll need an email sending service like the SendGrid Email API, but for …

    Read More
  • By Similoluwa Adegoke
    How to build an Email Newsletter application using ASP.NET Core and SendGrid How to build an Email Newsletter using ASP.NET Core and SendGrid

    Sending out newsletters is a great way to keep your audience up-to-date on the latest news. There are existing newsletter products like SendGrid Email Marketing, however, in a scenario where the client demands more customization, building a newsletter app yourself using the SendGrid Email API is a great alternative.

    The advantage of building your own newsletter application is that you can control the nuts and bolts of the system and still maximize deliverability and measure engagement with SendGrid.

    In this tutorial, you will learn how to build a newsletter app using ASP.NET Core Razor Pages and SendGrid.

    Solution Overview

    Every newsletter application involves two parties: the subscriber of the newsletter, and the author of the newsletter.

    The subscriber's journey goes like this: The soon-to-be subscriber fills out a form to subscribe that includes their email address and other details (depending on your business needs). When the subscriber submits the …

    Read More
  • By Daniel Diaz
    Build an Email Activation Flow with Django and SendGrid Build an Email Activation Flow with Django and SendGrid

    Any web application that includes authentication processes should have some sort of email activation flow. If you don’t, you’re decreasing the possibility of contacting your users and opening a door for spammers to create fake accounts and affect your website.

    This tutorial will teach you how to build confirmation emails to verify users’ registration using Django and SendGrid.

    Django has a built-in mail sending interface, which we’ll be using to send emails with SendGrid through the tutorial.

    After we finish, you’ll have an authentication system that requires users to verify their account with a confirmation email.

    We’ll create a complete project from scratch but if you already have one, don’t hesitate in following along with this tutorial.

    Whenever you want a quick reference to the code, you can visit this GitHub repository.

    Prerequisites

    To complete this tutorial, you’ll need the following:

    Read More
  • By Niels Swimberghe
    .NETアプリケーションにデフォルト設定を適用する方法 .NETアプリケーションにデフォルト設定を適用する方法

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

    過去に投稿したチュートリアル記事「TwilioとC#および.NETのアプリケーションをより良く構成する方法(英語)」と「SendGridとC#および.NETのアプリケーションをより良く構成する方法(英語)」では、Microsoft.Extensions.ConfigurationAPIを使用してアプリケーションの改善方法をご紹介しました。本稿では、これらのチュートリアルのテクニックを基に、デフォルトのオプションを設定の特定の場所に保存し、別の場所から上書きする方法をご紹介します。 例を挙げて説明します。アプリケーションから送るメールの種類は様々で、ウェルカムメール、パスワードリセットメール、オファーメールなどがあります。メールの種類によって、メールアドレスを使い分けたほうがよい場合もあります。「no-reply@yourdomain.tld」のように、返信不要のアドレスを使うことが多いですが、オファーメールでは受信者からの返信を受け取ることに大きな価値があることもあります。そこで、返信不要のアドレスを使う代わりに、返信を営業担当者に転送し、顧客関係管理(CRM)システムと自動的に統合されるようなメールアドレスを使うことができます。

    本稿では、デフォルトの返信用アドレスとして「no-reply@yourdomain.tld」を使用しますが、オファーメールでは、例えば「offers@yourdomain.tld」のように別のメールアドレスを使用します。

    必要事項 …

    Read More
  • 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 Niels Swimberghe
    Send Email and SMS from Google Forms using Zapier, SendGrid, and Twilio Send Email and SMS from Google Forms using Zapier, SendGrid, and Twilio

    Forms are one of the fundamental building blocks of the web. Almost all websites use forms to get feedback from users and to gather leads. Many of these forms integrate directly with a Customer Relationship Management (CRM) system, while others forward the form data directly to an email inbox.

    If you're building a form using a web framework, you can quickly integrate SendGrid's Email API or one of the SendGrid libraries to forward the data to an email inbox. However, sometimes there's no time to build a fully fledged form yourself, or the form's purpose is for a single short-lived campaign. In that case, you could use an off-the-shelf form product like Google Forms to get the job done quickly with minimal investment. You don't even have to sacrifice the form integrations, because with Zapier's workflow automation, you can integrate Google Forms with tons of products including SendGrid to send …

    Read More
  • By Katie Porter
    Bringing Cohesion to the Twilio Product Suite: Part I blog-header-image.png

    Twilio has grown into a fairly large company—we have over 8,100 employees at the time of writing—and all of us are toiling away building and maintaining our different parts of the greater Twilio machine.

    Having so much energy behind building Twilio’s products is amazing, but at this scale, it takes a lot of intentional effort not to “ship our org chart” and create a fragmented customer experience. We have a whole slew of product verticals building different pieces of a horizontal end-to-end user journey. On top of that, we’re also working to thoughtfully integrate recent acquisitions—such as Segment and SendGrid —into our product suite, and these products were built by entirely different companies. The result, understandably, is a lack of cohesion across our products and, consequently, a disjointed user experience.

    Our UX Infrastructure team— being a platform team that serves horizontally across the organization—is well-positioned to smooth the edges …

    Read More
  • By Phil Nash
    Twilio SendGridとNode.jsを使用してメール問い合わせフォームを構築 How to build an email contact form with SendGrid and Node JP

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

    Webサイトにメールアドレスを公開すると、スクレーピングされ、スパムに使用されるおそれがあります。この問題を回避し、同時に自身のWebサイトからメールで問い合わせを受け取れるようにする方法の一つとして、問い合わせフォームを構築することがあります。

    本稿では、Twilio SendGridベースの開発プロジェクトの一例として、ウェブサイト上で問い合わせフォームを構築し、メールアドレスを公開することなく問い合わせのメールを受け取れるようにする方法を説明します。

    プロジェクトはTwilio Functionsも使って構築しますが、本稿でご紹介するコードはあらゆるNode.js環境での使用に対応しています。

    APIによるメール送信との違い

    ユーザーがお問合せフォームを送信した際は、お問合せフォームを入力した人のメールアドレスを送信元とするメールがウェブサイト運営者に送信されることがよくあります。しかし、メール送信に関する信頼性を維持するため、Twilio SendGridは単一送信元として検証されたアドレス、または認証済みのドメインからの送信しか許可しません。

    そのため、提供されたメールアドレスをfromアドレスとして使用する代わりに、reply-toアドレスに設定できます。この方法であれば、Twilio SendGridは認証済みメールアドレスからメールを送信する一方で、受信 …

    Read More
  • By Will Johnson
    Send Email After Password Changes with SendGrid and Auth0 Actions Send Email After Password changes with sendgrid and auth0 actions

    Introduction

    The security of your customers’ data is essential and goes beyond just the application. Alerting customers when their account information changes, such as a username or password, is a great way to show customers you're looking out for them. You can pair Twilio SendGrid with Auth0 Actions to email users when their passwords change to build another layer of trust.

    This blog post will walk you through sending a password change email using SendGrid’s Mail Send endpoint with Auth0 Actions.

    Prerequisites

    • A free Twilio SendGrid Account – Sign up here.
    • A free Auth0 Account – Sign up here
    • An application in your Auth0 account. If you don't have one, you can use one of the Auth0 Quickstarts with a sample application.

    Set up SendGrid

    Before sending emails using SendGrid, you'll need to verify your Sender Identity and generate your API key. Verify the Sender Identity to confirm that …

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