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:

Turn off any validation:

Specify a custom validation function:

Wolfram Research (2017), MailAddressValidation, Wolfram Language function, https://reference.wolfram.com/language/ref/MailAddressValidation.html.

Text

Wolfram Research (2017), MailAddressValidation, Wolfram Language function, https://reference.wolfram.com/language/ref/MailAddressValidation.html.

BibTeX

@misc{reference.wolfram_2020_mailaddressvalidation, author="Wolfram Research", title="{MailAddressValidation}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/MailAddressValidation.html}", note=[Accessed: 19-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_mailaddressvalidation, organization={Wolfram Research}, title={MailAddressValidation}, year={2017}, url={https://reference.wolfram.com/language/ref/MailAddressValidation.html}, note=[Accessed: 19-April-2021 ]}

CMS

Wolfram Language. 2017. "MailAddressValidation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MailAddressValidation.html.

APA

Wolfram Language. (2017). MailAddressValidation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MailAddressValidation.html