
Chapter 10 – SMTP Client
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 105
Scenario 2 – Sending a Text Email Using
Interactive Mode
This scenario sends a text email with the message body is entered in interactive mode.
Issue the following command:
send-mail
-t "<email #1>, <email #2>"
-c "<email #3>, <email #4>"
-s "subject data"
The SMTP session then enters into interactive mode and requests that the message body be entered (see the figure
below). After typing the message, type Ctrl+D to end the message.
The email is sent only to the to-addresses (if any) and the cc-addresses (if any) entered from the command prompt.
The subject is taken from the command prompt.
Notes
1. The email is not sent to addresses pre-configured using set commands.
2. At least one address, either the to-address or the cc-address, should be given as an alternative to
sending email directly from the command prompt.
3. If the subject option is not specified and is not pre-configured using set command, SNMP enters into
interactive mode and requests a subject to be entered.
4. Type Ctrl+C to quit the email at any given time.
Comentarios a estos manuales