Function validateEmail

Provides a simple email address validation.

Note that the validation could be stricter in some cases than required. The user name is forced to be ASCII, which is not strictly required as of RFC 6531. It also does not allow quotiations for the user name part (RFC 5321).

Invalid email adresses will cause an exception with the error description to be thrown.

Prototype

string validateEmail(
  string str,
  ulong max_length
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.