How to send email in linux from command line

[shahzad@server ~] $ mail -s "Test mail for salam" salam843@gmail.com
-s ==> for subject

How to send email with attachment
Install mutt package

[root@server ~]# yum -y install mutt
Login with user and create a file which you want to attache
[shahzad@server ~]$ mutt  -s "Doc" -a /home/shahzad/a salam843@gmail.com
-a ==> fro attachment

 ########Thanks for visiting############

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment