Platforms to show: All Mac Windows Linux Cross-Platform
VerifyEmailMBS(email as string, NetworkCheck as boolean) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | Network | MBS Network Plugin | 14.0 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
If NetworkCheck is true, the DNS server is queries for whether an email service is available (MX Record).
Else we only do a syntax check.
Result is zero for scuccess or one of this error codes:
1 | Invalid character in local part of email address. |
2 | Missing dot in local part of email address. |
3 | Invalid character in local part of email address. |
4 | Unescaped special character in local part of email address. |
5 | No local part in email address. |
6 | Dot found before @ character. |
7 | No domain in email address. |
8 | Domain starting with dot. |
9 | Domain is not allowed to have two dots. |
10 | Invalid character in domain of email address. |
11 | Special character in domain of email address. |
12 | No dot in domain in email address. |
13 | Domain longer than allowed in email address. |
14 | DNS failed to find mail server for the domain in email address. (Windows) |
15 | DNS failed to find mail server for the domain in email address. (Mac/Linux) |
16 | DNS did not find a mail server for the domain in email address. |
17 | DNS failed to find mail server for the domain in email address |
18 | DNS server answers try again too often. |
IDN support is not included. You may need to preprocess email if you need that.
If you have a DNS server, which will redirect all mistyped domain names to a search website, this won’t really work well and detect too many valid domain names.
Some examples using this global method:
Blog Entries
- MBS Xojo Plugins, version 18.0pr7
- MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.0
- MBS Xojo / Real Studio Plugins, version 14.0pr5
- MBS Xojo / Real Studio Plugins, version 14.0pr4
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Network Plugin.