What is SendEmail?

SendEmail is a lightweight command-line, SMTP e-mail client. It was designed to be used in bash scripts, batch files, Perl programs, and websites, but is also quite useful in many other contexts. SendEmail is written in Perl programming language and is unique in that it requires no special modules. It has a straightforward interface, making it very easy to use.

Installing SendEmail on Linux

The sendemail package is available under default package repositories for most Linux systems. Use the default package manager to install sendemail package on your system.

Using Debian package manager:sudo apt update sudo apt install sendemail -y Using DNF package manager:sudo dnf makecache –refresh sudo dnf install sendemail -y

Sending Emails with SendEmail

Now, you can send emails via the remote SMTP servers via the command line or shell scripts. In order to send emails, you need SMTP details. Here is the basic sendemail command with the required parameters. Type sendemail on terminal and hit enter to get more details about command line parameters.

Conclusion