Invalid email addresses
Keeping your email campaigns effective requires finding and removing invalid email addresses. This requires knowing what makes an email address invalid. Twilio SendGrid validates email addresses in your campaign lists before sending messages to them.
An email address is invalid if it meets either of the following two conditions:
- The email address syntax doesn't comply with internet email format standards.
- The email address doesn't exist at the recipient's mail server.
- RFC 3696, section 3 outlines email address syntax restrictions.
- RFC 5321, section 4.5.3.1 defines the parts and lengths of an email address.
Email addresses consist of two parts: the local-part that comes before the@
sign and the domain part that comes after.- The local-part can't exceed 64 octets in length.
- The domain part can't exceed 255 octets in length.
- Taken together, the whole email address can't exceed 254 octets in length.
- RFC 5322, section 3 defines the ASCII characters (as octets) allowed in an email address.
These RFCs define length in octets rather than characters.
- A single character in a non-Latin alphabet may use more than one octet, or eight bits, of data.
For example: The local-part of an email address using Chinese characters can't exceed 32 characters. - RFC 6531 covers Unicode characters in the local-part of an email address.
This requires the SMTPUTF8 extension for your email provider. - RFC 5890 covers Unicode characters in the domain part of an email address.
- Support for international characters depends on the email provider.
- The email address doesn't include the
@
symbol between the local-part and domain part. - The local-part of an email address includes characters other than the following:
- Letters (
A-Z
,a-z
). - Digits (
0-9
). - Special characters (
!
,#
,$
,%
,&
,'
,*
,+
,-
,/
,=
,?
,^
,_
,`
,{
,|
,}
,~
,.
).
- Letters (
- The local-part starts with a period (
.
) or includes two or more periods in a sequence (first..last@example.com
).
Target email servers and email service providers might have additional restrictions on email address syntax.
To validate the format of each email address before you send, Twilio SendGrid sends a query to the destination email system. If the destination system doesn't find the email address, it returns the SMTP status code 550: Requested action not taken: mailbox unavailable
. This indicates an invalid email address.
Twilio marks the email address as invalid in your campaign list. Twilio retains reports of any invalid email addresses for 30 days.
To improve your campaign list, remove invalid email addresses. Records of invalid email addresses build over time. This affects the quality of your email list.
To remove invalid email addresses in your lists, complete the following tasks:
- Search for invalid email addresses:
- Click the calendar icon.
- Choose the range of dates to search.
Your recipient list refreshes and displays the reports of invalid email addresses between those dates.
- Download invalid email addresses as a comma-separated value (CSV) file for your records.
- Click the gear icon at the top of the page.
- Select Download CSV.
The file downloads to your computer from your browser.
- Remove invalid email addresses from the list:
- Select individual email addresses or select all displayed email addresses.
- To select one email address at a time, select the checkboxes next to the recipient names.
- To select all displayed email addresses, select the checkbox next to the search box.
- A new button displays.
- To remove the selected email addresses, click that button.