({{, (RefLink[MailAddressValidation, paclet:ref/MailAddressValidation]) 
is an option for (RefLink[SendMail, paclet:ref/SendMail]) that specifies whether and how to validate email addresses.}})

OpenersNotesSection(Spacer1)Details

Typical settings include:

With the setting (RefLink[MailAddressValidation, paclet:ref/MailAddressValidation])->f, the function f is applied to all sender and recipient email addresses.

If validation fails for any address, (RefLink[SendMail, paclet:ref/SendMail]) will not send any message, and will return a (RefLink[Failure, paclet:ref/Failure]) object.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

By default, some email validation is performed:

SendMail["to1 @wolfram.com","body"]

Turn off any validation:

SendMail["to1 @wolfram.com","body",MailAddressValidation->None]

Specify a custom validation function:

SendMail["to1 @wolfram.com","body",MailAddressValidation->(StringQ[Interpreter["EmailAddress"][#]]&)]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SendMail, paclet:ref/SendMail])  ▪  (RefLink[MailSettings, paclet:ref/MailSettings])  ▪  (RefLink[Interpreter, paclet:ref/Interpreter])}})}})