Home > Operation and Maintenance > Linux Operation and Maintenance > How to use the mail command to send emails in Linux

How to use the mail command to send emails in Linux

小云云
Release: 2018-03-27 14:17:03
Original
4579 people have browsed it

This article mainly shares with you how to use the mail command to send emails in Linux. I hope it can help you.

  1. When I use Linux at work, I occasionally need to use the mail command to send emails.


  2. From the above command, we can see that mail has been installed on the system. We also need to set up mail. , let it use an external mailbox to send emails. The setting file is /etc/mail.rc


  3. I am using 163 mail, so I set the mail to use 163 agent needs to add two lines at the end of /etc/mail.rc to send emails, as follows


  4. ## Although we have set up Linux to use the client to send emails using 163, we still need to log in to the mailbox to set up POP3/SMTP/IMAP.


  5. After setting this aspect, you can use it on linux Send mail. For example, I sent one to myself for testing.


  6. You can see the email in the mailbox or foxmail client, indicating that the email Sent successfully.

Related recommendations:

PHP How to use PHPMailer to send emails and attachments

The above is the detailed content of How to use the mail command to send emails in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template