How E-mail Works
Every day the citizens of the Internet send each other billions of e-mail messages. if you are online a lot, you yourself may send a dozen or two e-mails each day without even thinking about it. obviusly, e-mail has
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
Test of the Mail command under the Linux system1. One of the simplest examples:Mail-s test [email protected]r.comThe result of this command is to send an empty letter titled Test to the back of the mailbox, if you have an MTA and the back of the
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
Because I often work under Linux, so many times need to send their work reports or other useful things to the relevant people, so take the time to study how to send mail under Linux. We can usually use the following 3 to send the method:1. Use the
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
When it comes to sending mail, first mention SMTP (hehe, the master will skip this section!). )。 The full name of SMTP is "Simple Mail Transfer Protocol", which is simply the message Transfer Protocol. It is a set of specifications for transferring
. NET, the function of sending mail has been encapsulated into the System.Web.Mail namespace of the. NET Framework, and using this namespace, it is easy to build a mail-sending program that requires only a good structure of the SMTP server in
In linux, the mail command can be used to send emails like in php, but the mail function requires simple configuration to send emails. Let's take a look at it.
Mail configuration
Configure the new version of mailx to send emails using an external
Linux uses mail to send mailThe first step checks whether the Mail command is installed650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/78/86/wKioL1Z_TY3gOkdmAAAcGL1tLtQ622.png "title=" Zabbix-mail.png "alt=" Wkiol1z_ty3gokdmaaacgl1tltq622.
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.