< Home

mail

Function

The mail command specifies the email recipient address and CC address.

The undo mail command deletes the email recipient address and CC address.

Format

mail { recipient | copyto } mail-address

undo mail { recipient | copyto } mail-address

Parameters

Parameter Description Value
recipient Indicates the email recipient. -
copyto Indicates the CC recipient. -
mail-address Specifies the recipient address. The value is a string of 6 to 64 characters, such as mail@example.com.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can specify a maximum of 10 addresses (including recipient addresses and CC addresses).

Example

# Set the email recipient address to mail@mailserver.com.

<sysname> system-view
[sysname] mail recipient mail@mailserver.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >