sendemail command not found

In this troubleshooting guide we learn how to fix sendemail command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

sendemail: command not found

or when using sudo you get the following error message

sudo: sendemail: command not found

Solutions to sendemail: command not found

How To Fix sendemail: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu sendemail is provided by sendemail package.

sendemail is:

SendEmail is a lightweight, completely command line based, SMTP email agent. It was designed to be used in bash scripts, Perl programs, and web sites, but it is also quite useful in many other contexts.

SendEmail is written in Perl and is unique in that it requires no special modules. It has a straight forward interface, making it very easy to use.

To fix this problem, we can install more using the command below.

sudo apt-get -y install sendemail

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install sendemail.

sudo apt -y install sendemail

Or if you have aptitude installed you can use the following command.

sudo aptitude install sendemail

Summary

In this tutorial we learn how to fix sendemail command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.