beautypg.com

Multi-Tech Systems MTS2SA-T User Manual

Page 151

background image

Chapter 13 – SMTP Client

Multi-Tech Systems, Inc. MultiConnect Serial-to-Serial Adapter User Guide (S000354A)

151

Scenario 7 – Sending a Mime Encoded Binary
Attachment Using Configuration and
Interactive Mode

The to-address, cc-address, and subject are pre-configured.
The message body is entered in the Interactive Mode.

Configure the following details apart from the mandatory configuration:

Set subject data of maximum length 255 characters.
Command: set send-mail subject "subject data"

Set to-addresses of maximum length 64 characters.
Command: set send-mail to-address 1 email-id#1

set send-mail to-address 2 email-id#2

Set cc-addresses of maximum length 64 characters.
Command: set send-mail cc-address 1 email-id#3

set send-mail cc-address 2 email-id#4

Issue the following command: # send-mail -b

The SMTP session then enters into interactive mode requesting the message body to be entered as
shown in this figure. After entering the message, type Ctrl+D to end the message. When the attachment
body reaches the file size, you will be asked whether to continue with one more attachment. Type n for
No
. The email with its attachment is sent only to the pre-configured to-addresses and cc-addresses, if
any. The subject is also taken from the configuration.

Notes:

1.

The email is sent to addresses pre-configured using set commands.

2.

At least one address, either the to-address or the cc-address, should be configured using set

commands; otherwise, the SMTP session will enter into interactive mode prompting for the
required details to be entered.

3.

If the subject is not configured using commands, SMTP will request the subject to be entered.

4.

Type Ctrl+C to quit the email at any given time.

5.

If the host wants to quit the email while sending the binary attachment body, type Ctrl+C and wait

for 3 seconds without entering any character.

This manual is related to the following products: