Yum install mailutils
Since this file contains SMTP credentials in plain text, the permissions and ownership should be edited such that only the root user can read and write the file.
Your email address will not be published. Prerequisites: A fully qualified domain name. You can also send message from text files with the following command.
You can also install and use mutt command to send emails. It is a popular light weight email client for Linux. Here is the command to install it. The above command is similar to mail command, and uses -s option for subject and -a option for attachment. Once System is successfully updated you can install mailx package from repository using yum install mailx -y command as shown below.
This command will download and install the latest version of mailx package from enabled Repository. After installing mailx package you can verify the mail command version using mail -V command as shown below.
As shown in the below output, current version is Now it is the time to test the functionality of mail command from CLI by sending a test email to localhost using below command. Thank you! You may also like. Santosh Prasad Hi! View all posts.
0コメント