sendmail

Send email. More information: <https://manned.org/sendmail>.

Install

All systems
curl cmd.cat/sendmail.sh
Debian Debian
apt-get install xmail
Ubuntu
apt-get install xmail
Arch Arch Linux
pacman -S esmtp
image/svg+xml Kali Linux
apt-get install citadel-server
CentOS
yum install sendmail
Fedora
dnf install sendmail
Windows (WSL2)
sudo apt-get update sudo apt-get install xmail
Raspbian
apt-get install xmail

Send email. More information: <https://manned.org/sendmail>.

  • Send a message with the content of `message.txt` to the mail directory of local user `username`:
    sendmail username < message.txt
  • Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in `message.txt`:
    sendmail -f you@yourdomain.com test@gmail.com < message.txt
  • Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the file `file.zip`:
    sendmail -f you@yourdomain.com test@gmail.com < file.zip

© tl;dr; authors and contributors