Once you get familiar with 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 the send email attachment.

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

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

 

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.

 
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:

 
Using mailx Command

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

 
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 with all…

4 Ways to Send Email Attachment from Linux Command Line

Leave a Comment