Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

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.com:

MBS("Email.Verify"; "test@monkeybreadsoftware.com"; 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

This function is free to use.

Created 18th August 2014, last changed 4th March 2023


EIDSDK.Version - EmailParser.Address