mzaks / EmailValidator

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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@domain.com")

Other options

EmailValidator.validate(email: "email@domain.com",
                        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

License:MIT License


Languages

Language:Swift 91.6%Language:Ruby 6.7%Language:Objective-C 1.7%