TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Ben Guo.
A simple objective-C wrapper for the Mailgun email validation API.
BZGMailgunEmailValidator *validator =
[BZGMailgunEmailValidator validatorWithPublicKey:YOUR_PUBLIC_KEY];
[validator validateEmailAddress:self.emailFieldCell.textField.text
success:^(BOOL isValid, NSString *didYouMean) {
// Validation succeeded
} failure:^(NSError *error) {
// Validation failed
}];
performsFallbackValidation
to NO
if you'd prefer to handle this case yourself.If you're using Cocoapods, simply add pod 'BZGMailgunEmailValidation'
to your Podfile
.
Otherwise, add BZGMailgunEmailValidator.h
and BZGMailgunEmailValidator.m
to your project.
http://blog.mailgun.com/post/free-email-validation-api-for-web-forms/
http://documentation.mailgun.com/api-email-validation.html