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: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  

Email.Verify

Verifies if an email is valid.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Utility 3.3 Yes Yes Yes Yes Yes
MBS( "Email.Verify"; emailAddress; Flags )   More

Parameters

Parameter Description Example value
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.

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"

Blog Entries

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.

Created 18th August 2014, last changed 25th July 2020


EIDSDK.Version   -   EmailParser.Address

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins