Once you get familiar to using the Linux terminal, you would like to try and do everything on your system by merely writing commands together with sending emails and one in all the vital aspects of sending emails is attachments.

In this post, we’ll learn ways that of sending an email with attachment from the Linux terminal. significantly, there ar many statement email shoppers for Linux that you just will use to method emails with easy options.

A MTA is an application to blame for causation and receiving emails from one host to a different. you want to have a operating mail system or setup one of the mail transfer agents (MTA’s) for Linux on your system. we are able to use following four (4) command for sending mail with attachment.


  1. Using mail Command

Mail is part of the mailutils (On Debian) and mailx (On RedHat) package and it is used to process messages on the command line.

  1. Using mutt Command

mutt is a popular, lightweight command line email client for Linux. If you do not have it on your system, type the command below to install it:

  1. Using mailx Command

mailx works more like the mutt command and it it also a part of mailutils (On Debian) package.

  1. Using mpack Command

mpack encodes the named file in one or more MIME messages and sends the message to one or more recipients, or writes it to a named file or set of files, or posts it to a set of newsgroups.

Thanks for continues with us…
You are most welcome to share your technical knowledge to all…

Leave a Reply