Discover mail command to send attachment in linux, include the articles, news, trends, analysis and practical advice about mail command to send attachment in linux on alibabacloud.com
Centos6.x use the mail command to send an emailUse the mail command to send an email
Because you often need to back up website data, you have learned how to send emails through shell in linux. Here, we use CentOS as an example to use the mail
Because you often work under Linux, so many times you need to send your work reports or other useful stuff to the people involved, so take the time to study how to send mail under Linux. We can usually use the following 3 to send the way:
1. Use
This article is sponsored by Ilanniweb, starting in Slime Line the world To get more articles, you can follow my ilanniweb. This article mainly describes how to use Msmtp+mutt to send mail under Linux, of course, there are many tools for sending
ways to send mail using external mailboxes
Bin/mail will use the local sendmail to send mail by default, which requires local machines to install and start the SendMail service, is cumbersome to configure, and can cause
Use the mail command in CentOS to send emails
The mail program on the Linux server calls sendmail to send mails. The sendmail server provides the function of sending mails externally. By default, you cannot send emails to CentOS. you can install a
This article is sponsored by Ilanniweb , starting in Slime Line the worldTo get more articles, you can follow my ilanniweb.This article mainly describes how to use Msmtp+mutt to send mail under Linux, of course, there are many tools for sending mail
Ubuntu:
First install mail
sudo apt-get install Mailx
Install postfix sudo apt-get install postfix again (configure during installation and follow the prompts)
Send mail Command sample cat "Content" | Mail-s "Subject" yl33643@126.com
In
Mail Configuration
Configure new MAILX to use external mailboxes to send mail:
Edit/etc/nail.rc (Note that is not an older version of/etc/mail.rc): vi/etc/nail.rcAdd two lines:Set from=myname@qq.com smtp=smtp.qq.comSet Smtp-auth-user=myname
Linux Mail Command parameters:When you use mail to send mail, you must first start the SendMail service.Mail–s "Mail Subject" –c "CC Address" –b "BCC address"---F sender e-mail address –F sender name Three commonly used formats for sending
L05-Linux deployment msmtp + mutt send mail, msmtpmutt
I. Preface
First of all, you have to understand the process of sending an email, the following section of the theory Excerpted from the official website of Liao Xuefeng
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.