Coder Social home page Coder Social logo

email-seems-valid's Introduction

email-seems-valid
An offline check to see if an email seems valid.
Contains TS or JS packages for browser or Node.js

emailSeemsValid('[email protected]'); // true

emailSeemsValid('i̇[email protected]'); // false
emailSeemsValid('[email protected]'); // false
emailSeemsValid('[email protected]'); // false


Why is this needed?

Tools like Amazon SES are picky about email addresses. It's very technical, but this library is a good offline validator that an address will work for Amazon SES and all other email senders

Usage

import { emailSeemsValid } from 'email-seems-valid';

// simple valid email addresses
emailSeemsValid('[email protected]');
emailSeemsValid('[email protected]');
// all true

// special characters
emailSeemsValid('[email protected]');
emailSeemsValid('[email protected]');
emailSeemsValid([email protected]');
emailSeemsValid('i̇[email protected]');
// all false (Amazon SES rejects exclamation points)

// common mis-spellings
emailSeemsValid('[email protected]');
emailSeemsValid('[email protected]');
emailSeemsValid('[email protected]');
// all false

This library does not provide accurate true/false all emails, but it works for 99.95%.


Trusted By

• Earnifi

Want to be added to this list? Submit a pull-request today!


More Details

Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a destination email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492.

Read more here

email-seems-valid's People

Contributors

dawsbot avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.