Usage
Function ZAP.Report.EnableEmailReporting (
String Addresses,
Boolean RemoveLocalReport [Optional],
String SmtpServer [Optional],
Integer SmtpServerPort [Optional],
Boolean SmtpEnableSsl [Optional],
String SmtpUsername [Optional],
String SmtpPassword [Optional],
String FromField [Optional],
Boolean OverwriteGlobalConfiguration [Optional]
)
ZAP Utility
Report.Enable...
jsmith@zap.com
true
smtp.server.com
465
true
user
password
J. Smith
false
String Addresses
Boolean RemoveLocalReport [Optional]
String SmtpServer [Optional]
Integer SmtpServerPort [Optional]
Boolean SmtpEnableSsl [Optional]
String SmtpUsername [Optional]
String SmtpPassword [Optional]
String FromField [Optional]
Boolean OverwriteGlobalConfiguration [Optional]
Parameters
Addresses
Type: String
Comma-separated E-Email address(es) of recipients
RemoveLocalReport (optional)
Type: Boolean
Default Value: False
Removes local copy of the report if E-Mail successfully sent to all recipients
SmtpServer (optional)
Type: String
Default Value: Current value of SMTP Server
SMTP Server
SmtpServerPort (optional)
Type: String
Default Value: Current value of SMTP Server Port
SMTP Server Port
SmtpEnableSsl (optional)
Type: Boolean
Default Value: True or Current value of Current SMTP Configuration if SMTP is not set here
Use SSL protocol
SmtpUsername (optional)
Type: String
Default Value: Current value of SMTP Username
SMTP Username, leave null or empty if it's not necessary
SmtpPassword (optional)
Type: String
Default Value: Current value of SMTP Password
SMTP Password, leave null or empty if it's not necessary
FromField (optional)
Type: String
Default Value: First E-Mail from Address field
From field of E-Mail. If it sets to null or empty will use first E-Mail address
OverwriteGlobalConfiguration (optional)
Type: Boolean
Default Value: False
Overwrite default configuration with these setting
Returns
No return value
Example
VBScript
'enable email reporting
Zap.Report.EnableEmailReporting "jsmith@zap.com"
'use optional parameters
Zap.Report.EnableEmailReporting "jsmith@zap.com", false, "smtp.server.com", 465, true, "user", "password", "J. Smith", false
JavaScript
// enable email reporting
Zap.Report.EnableEmailReporting("jsmith@zap.com");
// use optional parameters
Zap.Report.EnableEmailReporting("jsmith@zap.com", false, "smtp.server.com", 465, true, "user", "password", "J. Smith", false);
ZAP Utility
Report.Enable...
jsmith@zap.com
Comment
Use optional parameters, add SMTP settings
ZAP Utility
Report.Enable...
jsmith@zap.com
true
...
false

Comment
Enable E-Mail reporting