View source code
Display the source code in std/net/isemail.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module std.net.isemail

Validates an email address according to RFCs 5321, 5322 and others.

Version

3.0.13 - Version 3.0 of the original PHP implementation: http://www.dominicsayers.com/isemail

Standards

  • RFC 5321
  • RFC 5322

References

Functions

NameDescription
isEmail(email, checkDNS, errorLevel) Check that an email address conforms to RFCs 5321, 5322 and others.
statusCodeDescription(statusCode)

Structs

NameDescription
EmailStatus Represents the status of an email address

Enums

NameDescription
EmailStatusCode An email status code, indicating if an email address is valid or not. If it is invalid it also indicates why.

Aliases

NameTypeDescription
CheckDns Flag!("checkDns") Flag for indicating if the isEmail function should perform a DNS check or not.

Authors

Dominic Sayers <dominic@sayers.cc>, Jacob Carlborg

License

Boost Software License 1.0 Dominic Sayers graciously granted permission to use the Boost license via email on Feb 22, 2011.