Install mail command on Linux Server.

To send an E-mail from the linux server shell, the mailx module is required. We can install the mailx module by using the yum.

Login in to the server as root user and run the following command.

linux7802@server[~]# yum install mailx -y

Now try to send an E-mail by using the following syntax.

linux7802@server[~]#mail -vv your_e-mail_address.

About Anant 384 Articles
Senior technical writer