< Home

mail test

Function

The mail test command sends test email.

Format

mail test

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Test email is sent to test whether email messages can be successfully sent and received. Before you send test email, complete the following email configurations:

  • Run the mail command to specify the email recipient or CC recipient.
  • Run the mail sender command to specify the email sender.
  • Run the smtp server command to set the domain name or IP address of the SMTP server. If the SMTP server requires authentication, you also need to run the smtp authentication command to create a user name and password for the authentication.

Example

# Send test email.

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