3.112 SMTPSendEmail

Use this Knowledge Script to emulate the sending of email messages from Endpoint 1 to Endpoint 2, using TCP/IP’s SMTP standard.

The response time will be faster if you use a file size that is larger than the underlying MTU size; for example, use 1461 bytes or larger on Ethernet. The default data type for the email message is NEWS.CMP, a file containing text resembling a news article. The script has three sections.

  • In the first section, Endpoint 1 establishes a connection with the SMTP server and sends the identity of the mail sender and receiver.

  • In the second section, Endpoint 1 sends the body of the email message. (Note the “Size of record to send” variable.)

  • In the third section, Endpoint 1 sends a message that the email message is complete, and receives an acknowledgment.

If you choose to collect data, this Knowledge Script generates the following data streams:

  • The response time in seconds. Additional details are saved with the data point, and can be viewed by double-clicking the data point in the Graph Pane or Chart Console.

  • Availability -- Returns one of two values:

    • 1 -- test was successful

    • 0 -- test was not successful

3.112.1 Resource Objects

Networks-RT

3.112.2 Default Schedule

The default interval for this script is Every 15 minutes.

3.112.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Collect data?

Select Yes to collect data for graphs and reports. By default, data is collected.

Event when test fails to run?

Select Yes to raise an event when the test fails to run. By default, events are enabled.

Event when response time exceeds threshold?

Select Yes to raise an event when the threshold is exceeded. By default, events are enabled.

Select endpoints to run the test to

Click the Browse [...] button to display the Select a View dialog box. Highlight a view from the list and click Next to open the Select Desired Computer(s) dialog box. The view determines which computers are available for selection. Select one or more endpoint computers. Click Finish.

Response time threshold (seconds)

Specify a floating point number in seconds. When response time exceeds this value, an event is raised. On threshold events, the event message contains a breakdown of the total response time. Required, unless the Event when response time exceeds threshold parameter is disabled.

Unsuccessful test event severity

Set the severity level, from 1 to 40, to indicate the importance of the event. The default is 5.

Threshold event severity

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 15. If you disable throughput events, this value is ignored.

Detailed Parameters

 

Transactions per record

Specify a positive integer to represent the number of transactions to simulate. The value varies according to the application script.

Size of record to send

Specify the number of bytes to send in a record. The default is 40.

Reply size

Specify the number of bytes in the reply. The default is 10.

File size

Specify the number of bytes in the transmitted email message. The default is 1,000.

Transaction delay

Specify a positive integer in milliseconds to control the frequency of transaction execution. This simulates an end user running the transaction on a regular basis. The default of 0 sets no delay, so that the script executes the number of transactions per record as quickly as possible.

Destination port

Specify the destination port number, or use the default AUTO for automatic assignment. Must be an integer between 1 and 65,535.

Source port

Specify the source port number, or use the default AUTO for automatic assignment. Must be an integer between 1 and 65,535.