Skip to content

A simple (but correct) Swift library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation

License

Notifications You must be signed in to change notification settings

evanrobertson/EmailValidator

Repository files navigation

EmailValidator

A simple (but correct) library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation

Installation

Add to your Podfile pod 'EmailValidator'

Use

Basic

EmailValidator.validate("[email protected]")

Other options

EmailValidator.validate(email: "[email protected]",
                        allowTopLevelDomains: true,  // true/false, will allow top level domains
                        allowInternational: true)    // true/false, will allow international addresses (e.g cyrillic or chinese)

About

A simple (but correct) Swift library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation

Resources

License

Stars

Watchers

Forks

Packages

No packages published