Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Email.Verify
Verifies if an email is valid.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
Utility SendMail
|
3.3 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
MBS( "Email.Verify"; emailAddress; Flags )
More
MBS(
"Email.Verify"; /* Verifies if an email is valid. */
$emailAddress; /* The email address to check.e.g. "hello@macsw.de" */
$Flags) /* The sum of the flags to use.
Add 1 to check via DNS if domain is valid for email.
Add 2 to return the name of the mail server domain.e.g. 0 */
Less
Parameters
Parameter |
Description |
Example |
emailAddress |
The email address to check. |
"hello@macsw.de" |
Flags |
The sum of the flags to use.
Add 1 to check via DNS if domain is valid for email.
Add 2 to return the name of the mail server domain. |
0 |
Result
Returns OK or error message.
Description
Verifies if an email is valid.
Check syntax of email and optionally verifies if domain is registered for email delivery.
The network check may take a few seconds. While the function returns normally after a few milliseconds, the DNS server may not always be reachable and then the DNS query is sent several times.
For DNS query to work, firewall must allow port 53 to be used to connect to DNS server.
You can send or receive emails with our CURL functions. For sending the SendMail functions help to build an email and send it, while EmailParser functions help to parse an email.
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.
Does not work for IDN domains, e.g. with umlauts. You need to transcode them to puny code yourself.
Examples
Checks an Email:
MBS("Email.Verify"; "Hello@macsw.de"; 1)
Query mail server for monkeybreadsoftware.de:
MBS("Email.Verify"; "test@monkeybreadsoftware.de"; 2)
Example result: "mxlb.ispgateway.de"
Release notes
- Version 10.4
- Changed Email.Verify to have flags as second parameter. We keep 1 for network check and add 2 as an option to return the name of the mail server domain.
Blog Entries
Created 18th August 2014, last changed 17th August 2021
EIDSDK.Version
-
EmailParser.Address
Feedback: Report problem or ask question.