How to use the Linux Mail command

Source: Internet
Author: User

First you need to install MAILX this RPM package, execute yum install MAILX.

To edit the/etc/mail.rc, fill in the following 3 lines:

Set [email protected] smtp=smtp.qq.comset [email protected] Smtp-auth-password=654321set Smtp-auth=login



save exit.

The above demo code, 12345678 is the account name, 654321 is the password, with the QQ SMTP server. These parameters need to be replaced by your own.


Once the above configuration is complete, you can send a mail test.

Mail-s "Hello world" [email protected] < /etc/issue


How to use the Linux Mail command

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.