![]() ![]() ![]() Just write the following command to the terminal, and you will get the same result as the mutt command. One alternate way is to make use of the mail command utility that Linux provides us with. echo "Message Body" | mutt -a "/file_to_attach" -s "subject of the message" break down the above command to understand it better, the mutt keyword is used to specify that we are making use of mutt email based client, followed by the -a flag which is used to denote that we are attaching some file along with the email which is followed by the path to that file, then we have a -s flag that is used to tell mutt that we are providing a subject for the email and lastly we have the email id to which we want to send the email. Now once the mutt is installed we just need to write the following command to the terminal, and our mail along with the attachment will be sent to the email id. In order to make use of mutt, we first need to install it on our local systems.Ĭonsider the commands shown below for different versions that will help in installing mutt on the local machine.įor Linux Based Systems − apt-get install muttįor Centos/Fedora Systems − yum install mutt Some of the key features that Mutt has are −Īllows us to send attachments with emails It also supports important protocols like IMAP and POP which broadens the use-cases and application of mutt. Mutt is a command line based email client that allows us to send and read emails from command line in Linux based systems. There are multiple command line email clients available to achieve the attachment task, but the most common and widely used is mutt. In order to send a file as an attachment to an email using Linux, we either need to make use of a command line email client or the standard linux mail command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |