MailAddressValidation

MailAddressValidation

SendMail 的一个选项,指明是否并且如何验证电子邮件地址.

更多信息

  • 典型设置包括:
  • Automatic自动验证检测
    None无验证
    f一个任意函数 f
  • 当设置 MailAddressValidation->f,函数 f 被应用于所有发送和接收的电子邮件地址.
  • 如果任何地址的验证失败,SendMail 将不会发送任何消息,将返回一个 Failure 对象.

范例

基本范例  (3)

默认情况下,会执行某些邮件的验证:

关闭验证:

指定自定义的验证函数:

Wolfram Research (2017),MailAddressValidation,Wolfram 语言函数,https://reference.wolfram.com/language/ref/MailAddressValidation.html.

文本

Wolfram Research (2017),MailAddressValidation,Wolfram 语言函数,https://reference.wolfram.com/language/ref/MailAddressValidation.html.

CMS

Wolfram 语言. 2017. "MailAddressValidation." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/MailAddressValidation.html.

APA

Wolfram 语言. (2017). MailAddressValidation. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/MailAddressValidation.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_mailaddressvalidation, organization={Wolfram Research}, title={MailAddressValidation}, year={2017}, url={https://reference.wolfram.com/language/ref/MailAddressValidation.html}, note=[Accessed: 18-November-2024 ]}