A contact form is a common feature of many websites that provides a way for users to get in touch with the site’s administrators without having to open their email or hop on the phone. In a Python Django application, a contact form can be used to store a user’s contact information in the site’s database. And with Twilio SendGrid, we can also trigger an automated email containing that information as soon as the form is successfully submitted.
In this tutorial, we will build a simple contact form for a Django web application that does just that.
The importance of email marketing cannot be over-emphasized in modern-day business, mostly because of its cost-effectiveness and conversion-to-sales ratio. This tutorial will teach you how to use Twilio’s SendGrid Email API with Laravel and a Vue.js frontend to send bulk emails to more than 100 email addresses at once. This removes the pain of sending out emails slowly, as well as the possibility of emails going to spam.
After we’re finished, you will have developed a custom mailing list that:
- Allows anyone to enter their email address and save it to the application database
- Send out bulk emails to provided email addresses
To follow along with this tutorial you should have the following in place:
Sending notifications from your application means you can deliver your users relevant, timely and personalised information about their accounts or activity. You may have already built SMS notifications into your application, perhaps by following this Node.js tutorial on ETA notifications, but can we improve the experience? Your customers may want to receive notifications that are easily referenceable later or choose the channel through which they receive alerts.
In this post, we will explore how email notifications can work alongside SMS notifications for account alerts, and walk through how to build them into your application using the Twilio SendGrid Email API.
What you'll need
To follow along with the code and build the application in this post you will need:
- A Twilio account (if you don't have one yet, sign up for a new Twilio account here and receive $10 credit when you upgrade)
- A Twilio SendGrid account …
This article originally appeared on the Twilio SendGrid blog.
During a year of change, email has become an even more crucial connection between businesses and their customers. Email engagement increased by 200% in the wake of the COVID-19 pandemic. As more customers stay at home, checking the inbox has become a regular part of customers’ daily routines—day and night, we check-in with our favorite brands and organizations.
In 2020, Twilio SendGrid kept businesses connected to their customers by reliably processing over 1 trillion emails. Imagine 1 trillion letter-sized pieces of paper lined up end to end. That’s 173 million miles—long enough to travel to Mars and back when it's closest to Earth. Twice!
This incredible feat would not have been possible without our customers: senders both large and small who trusted us to deliver email to their customers. To celebrate this milestone, here’s a look at a few …
This post originally appeared on the Twilio SendGrid blog.
One of the main methods for businesses and consumers to stay connected during COVID-19 has been through email. So when it came to preparing our communication platform for the holiday season, we took this increased responsibility to heart.
For several months before the Black Friday weekend, we tested and tuned our infrastructure. Similar to years past we followed every anomaly, chased down every clue we uncovered to ensure stability, availability, and performance in our platform. We were preparing for holiday traffic that no one could predict with a high degree of certainty. All that preparation paid off—the volume our customers produced over the holiday weekend was unprecedented in the history of Twilio SendGrid.
This year we processed:
- 5.8 billion emails in 24 hours on Black Friday
- 41% increase over 2019
- 5.7 billion emails in 24 hours on Cyber Monday
- 36% …
AMP for email is a way to build emails that allow users to interact dynamically with the content of the message. AMP emails can load up-to-date data, handle form submissions inline, provide interactive components like carousels and accordions, and even use modern CSS.
AMP for email is a combination of a whitelisting process and a subset of the open source AMP HTML web component library that together allows you to build and send dynamic emails. You may have seen examples of this in your inbox before — my favourite is this experience when commenting on a Google Doc.
You too can create email experiences like this. In this article we're going to send a basic AMP Email using Twilio SendGrid.
What you'll need
To build your first AMP Email and send it with SendGrid you will need:
Without downplaying our current situation, we can all admit that COVID-19 phrases are overused. You’ve likely heard these sayings over and over again: “Times are changing,” “During these unprecedented times,” “Our new normal,” or “Where’s all the toilet paper?” But what do these phrases really mean?
Aside from the toilet paper (just making sure you’re paying attention!), it’s clear that COVID-19 has transformed our everyday communications. As consumers turn to contact-less interactions, companies from all industries are leaning on developers to re-architect their communications to reflect this changing landscape.
Thankfully, you have email to serve as your foundation for a plethora of communications this holiday season. You’re the architect, but we’ll provide the building blocks you need to grow your email program and make it to the inbox...
Toolbox tips for a well-grounded …
One of the challenges of programmatically connecting parties over the phone is accounting for voice mail. From the perspective of the underlying telephony network, a human answering a call looks identical to an automated answering machine.
Twilio provides Answering Machine Detection (AMD) that can be enabled when placing an outbound-api call via the
/Calls resource. However, when connecting to a party using the Studio Connect Call To widget (or TwiML Dial), we must use an alternative approach called "Human Detection".
Human Detection requires the answering party to positively acknowledge the call by pressing any button – something voicemail cannot do. In this post, we will use Human Detection, to make sure voicemail remains on Twilio rather than inadvertently being left on the end-users device.
Where might you need Human Detection?
I am a big fan of serverless Twilio Studio and Twilio Functions because of their flexibility.
Studio provides you a canvas, letting you drag and drop communications flows into place – how perfect is that? And Functions lets you run Node.js without worrying about setting up a server or hosting.
One common telephony requirement we see is the need to build out voicemail, should a dialed party be unable to answer the call. Often, you can improve the system by forwarding any recordings over email or SMS. So, let’s get our Bob Ross on and walk through building a solution!
In order to follow this tutorial, you will need:
One example might be San Francisco, where the city is planning to permanently cut 40 of 68 bus lines and free bus rides for youth.
In this blog post, concerned citizens can tell members of the San Francisco County Transportation Authority to not cut bus lines. Read on for a step-by-step process to build the bot, and you can text the +14153068517 number to see the example!
Set Up your SMS Chatbot
To follow along with this post, you need three things:
- A Twilio account - sign up for a free one here and receive an …