Validate

Overview 

Runs validation checks on the initialized email and returns a JSON object indicating the result of the validation and any identified issues

Syntax 

Validate()

Example 

This sample code calls Validate() on the initialized email object and writes out the results from the returned JSON object:

1var myEmail = Email.Init("myEmail");
2var results = myEmail.Validate();
3Write(results.Task.ValidationStatus);
4Write(results.Task.ValidationMessages);