MailAddressValidation

MailAddressValidation

is an option for SendMail that specifies whether and how to validate email addresses.

Details

  • Typical settings include:
  • Automaticautomatic validation test
    Noneno validation
    fan arbitrary function f
  • With the setting MailAddressValidation->f, the function f is applied to all sender and recipient email addresses.
  • If validation fails for any address, SendMail will not send any message, and will return a Failure object.

Examples

Basic Examples  (3)

By default, some email validation is performed:

In[1]:=
Click for copyable input
Out[1]=

Turn off any validation:

In[1]:=
Click for copyable input
Out[1]=

Specify a custom validation function:

In[1]:=
Click for copyable input
Out[1]=

See Also

SendMail  MailSettings  Interpreter

Introduced in 2017
(11.2)