Since the mail command in Linux often works in linux, you often need to send your own report or other useful stuff to relevant people, so I spent some time studying how to send mail in linux. We can usually use the following 3 transmission methods: 1. use...
Since the mail command in Linux often works in linux, you often need to send your own report or other useful stuff to relevant people, so I spent some time studying how to send mail in linux. We can usually use the following 3 transmission methods: 1. use Shell to send emails in the editor. in this way, you can directly edit the email body in the shell window. after editing, use Ctrl + D to exit, at the same time, the email will be sent out #-s is followed by the subject, followed by the target email address [root @ centos6 ~] # Mail-s "Lucky mail" xlapn@126.comHi Tomas, www.2cto.com Thank you for you help! Regards, Daniel2. use the pipeline to send the email echo followed by the email body [root @ centos6 ~] # Echo "Hi Tomas,> Thank you for you help!> Regards,> Daniel "| mail-s" Thank you mail "xlapn@126.com3. sending the mail body in the form of a file is suitable for writing long mail body, write the mail body to the file mail. body, and then
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