beautypg.com

Mail – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1982

background image

SMTP Commands

Software Reference for x310 Series Switches

72.4

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

mail

This command sends an email using the SMTP protocol. If you specify a file the text inside
the file is sent in the message body.

If you do not specify the to, file, or subject parameters, the CLI prompts you for the
missing information.

Before you can send mail using this command, you must specify the sending email
address using the

mail from

command and a mail server using the

mail smtpserver

command.

Syntax

mail [{to <to>|subject <subject>|file <filename>}]

Mode

Privileged Exec

Example

To send an email to [email protected] with the subject dummy plug
configuration,

and with the message body inserted from the file plug.conf use

the command:

Related Commands

debug mail
delete mail
mail from
mail smtpserver
show mail
show counter mail

Parameter

Description

to

The email recipient.

<to>

Email address.

subject

Description of the subject of this email. Use quote marks when the
subject text contains spaces.

<subject>

String.

file

File to insert as text into the message body.

<filename>

String.

awplus#

mail [email protected] subject dummy plug configuration
filename plug.conf