![Cisco ASR 9000 Serie Скачать руководство пользователя страница 195](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679195.webp)
the desired e-mail context with the To address, CC address, From address, and Subject line properly configured
using the configured e-mail server.
E-Mail Template
The e-mail template file has the following format:
Mailservername:<
space
><
the list of candidate SMTP server addresses
>
From:<
space
><
the e-mail address of sender
>
To:<
space
><
the list of e-mail addresses of recipients
>
Cc:<
space
><
the list of e-mail addresses that the e-mail will be copied to
>
Subject:<
subject line
>
<
a blank line
>
<
body
>
The template normally includes Tcl global variables to be configured.
Note
The following is a sample e-mail template file:
Mailservername: $_email_server
From: $_email_from
To: $_email_to
Cc: $_email_cc
Subject: From router $routername: Process terminated
process name: $process_name
subsystem: $sub_system
exit status: $exit_status
respawn count: $respawn_count
Exported Tcl Command Extensions
smtp_send_email
Given the text of an e-mail template file with all global variables already substituted, sends the e-mail out
using Simple Mail Transfer Protocol (SMTP). The e-mail template specifies the candidate mail server addresses,
To addresses, CC addresses, From address, subject line, and e-mail body.
A list of candidate e-mail servers can be provided so that the library will try to connect the servers on the
list one by one until it can successfully connect to one of them.
Note
Syntax
smtp_send_email text
Arguments
(Mandatory) Text of an e-mail template file with all
global variables already substituted.
text
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
179
Configuring and Managing Embedded Event Manager Policies
SMTP Library Command Extensions