report, namespace, enable, email, smtp, reporting, scriptless, script-less, scripted, step, view, stepview

Method Zap.Report.EnableEmailReporting

Enables Reporting to E-Mail address(es), if operation is not possible creates only local file

Watch this video to learn how to use this method

Have a problem with playback?

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

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);

Comment

Enable E-Mail reporting

ZAP Utility

Report.Enable...

jsmith@zap.com

Comment

Use optional parameters, add SMTP settings

ZAP Utility

Report.Enable...

jsmith@zap.com

true

...

false

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227