Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Email length validation #429

Closed
itsksaurabh opened this issue Apr 16, 2021 · 0 comments · Fixed by #430
Closed

Add Email length validation #429

itsksaurabh opened this issue Apr 16, 2021 · 0 comments · Fixed by #430
Labels
status: work in progress Twilio or the community is in the process of implementing type: community enhancement feature request not on Twilio's roadmap

Comments

@itsksaurabh
Copy link
Contributor

itsksaurabh commented Apr 16, 2021

Issue Summary

The technical limit for an email address is 64 characters before the @ sign and 255 after, allowing for a total length of 320 characters (including the @ sign).

According to https://tools.ietf.org/html/rfc3696#section-3

In addition to restrictions on syntax, there is a length limit on
   email addresses.  That limit is a maximum of 64 characters (octets)
   in the "local part" (before the "@") and a maximum of 255 characters
   (octets) in the domain part (after the "@") for a total length of 320
   characters.  Systems that handle email should be prepared to process
   addresses which are that long, even though they are rarely
   encountered

According to Sendgrid's best practices described in this blog https://sendgrid.com/blog/email-marketing-length-best-practices"

image

Technical details:

  • sendgrid-go version: v3.8.0
  • go version: 1.16
@shwetha-manvinkurke shwetha-manvinkurke added status: work in progress Twilio or the community is in the process of implementing type: community enhancement feature request not on Twilio's roadmap labels Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: work in progress Twilio or the community is in the process of implementing type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants