
內容簡介
大部分的電子郵件驗證器都會檢查郵件地址是否有 @ 和 .(句點),有些甚至會將特定的域名列入黑名單。但是,Mailgun 的高級電子郵件驗證服務則會更加深入並檢查域名的存在性、MX 記錄 的存在以及自訂的 ESP(電子郵件服務提供商)文法。
文法指的是每個電子郵件提供者所定義的規則。例如,Yahoo Mail 地址只能包含字母、數字、底線和一個句點。
因此,[email protected] 雖然可以在 is_email() 函數中完美通過驗證,但因為包含了多個句點而絕不可能存在。這樣的地址無法逃脫 Mailgun 的電子郵件驗證。
為什麼要使用 Mailgun 的電子郵件驗證服務?
執行一般的電子郵件語法檢查。
檢查電子郵件域名的存在性。因此,像 [email protected] 這樣的地址無法逃脫檢查。
檢查電子郵件域名是否有 MX 記錄。因此,像 [email protected] 的地址會被擋下。
檢查用戶名是否符合其 ESP(電子郵件服務提供商)的文法。例如,Gmail 不允許使用少於 6 個字符和連字號的用戶名,因此 [email protected] 和 [email protected] 無法通過驗證。
為什麼要使用這個外掛?
與 WordPress 的 is_email() 函數集成。因此,它可以與 Contact Form 7、Jetpack/Grunion 聯繫表單、WordPress 註冊表單以及使用 is_email() 函數的任何表單無縫配合使用。
在垃圾郵件插入資料庫之前擋住它。
確保評論過程不中斷,即使 Mailgun 網站發生 停機。
完全透明工作,前端不會有任何改變。
此外掛需要 Mailgun 的公共 API 金鑰,可通過在 Mailgun 註冊獲取。
如果您正在本機的 WAMP/LAMP/MAMP 安裝上試用此外掛,請確保系統連接到互聯網,以便此外掛與 Mailgun 聯繫。
可用的語言
英語
塞爾維亞克羅地亞語,由Borisa Djuraskovic翻譯
西班牙語,由Andrew Kurtis翻譯
進一步閱讀
閱讀 Mailgun 的電子郵件驗證服務。
http://blog.mailgun.com/post/free-email-validation-api-for-web-forms/
http://blog.mailgun.com/post/weekly-product-update-improvements-to-email-validation-api/
Mailgun Address Validator demo 及其 源代碼
Mailgun Email Validator Plugin 的官方主頁。
外掛標籤
開發者團隊
原文外掛簡介
Most email validators look for an @ and a .(dot) some go further and blacklist certain domain names. But Mailgun’s Advanced email validation service goes deeper and looks for the existence of the domain name, presence of a MX record and the custom ESP(Email Service Provider) grammar.
The grammar here is the rules defined by each email provider. For example, Yahoo Mail addresses can only contain letters, numbers, underscores, and one period.
So [email protected] perfectly passes the is_email() function but can never exist as it contains more than one period. Such addresses can’t escape Mailgun’s Email validation.
Why use Mailgun’s email validation service?
Performs the usual email syntax check.
Checks the existence of the email domain. So [email protected] can’t escape.
Checks if the email domain has a MX record. So [email protected] is caught.
Checks if the username complies with the grammar of its ESP (Email Service provider). Eg Gmail doesn’t allow usernames less than 6 characters and hyphens so [email protected] and [email protected] can’t get away.
Why use this plugin?
Integrates with the is_email() function of WordPress. So it works seamlessly with Contact Form 7, Jetpack/Grunion contact forms, WordPress registration form and any form which uses the is_email() function.
Kicks spam before it is inserted into the database
Ensures that the commenting process is uninterrupted even if Mailgun suffers a downtime
Works completely transparent, nothing changes in the frontend
This plugin requires a Mailgun Public API Key which can be obtained by signing up at Mailgun.
If you’re trying out this plugin on a local WAMP/LAMP/MAMP installation make sure your system is connected to the Internet for this plugin to contact Mailgun.
Available Languages
English
Serbo-Croatian by Borisa Djuraskovic
Spanish by Andrew Kurtis
Further Reading
Read about Mailgun’s email validation service.
http://blog.mailgun.com/post/free-email-validation-api-for-web-forms/
http://blog.mailgun.com/post/weekly-product-update-improvements-to-email-validation-api/
Mailgun Address Validator demo and its source code
The Mailgun Email Validator Plugin official homepage.
