send mail from the command line
Find a file
2024-03-22 11:16:11 +13:00
.gitignore add initial gitignore 2024-02-09 10:27:10 +13:00
COPYING license under OpenBSD/BSD-3-Clause licence 2024-02-09 10:27:29 +13:00
flake.lock add nix flake 2024-02-13 14:34:35 +13:00
flake.nix add nix flake 2024-02-13 14:34:35 +13:00
Makefile quote install path in makefile 2024-03-05 11:43:51 +13:00
mal.d add minimal working program 2024-02-09 10:26:06 +13:00
README.md wrap commands in readme 2024-03-22 11:16:11 +13:00

mal sends an email to one or more recipients, through information passed on its command line. Read COPYING for information on redistribution.

compilation

Install ldc and curl, and run make. To install the binary systemwide, run make install after compiling.

usage

Send an email from you@example.org to joe@example.org with the message body "hello!":

mal -m 'hello!' -t joe@example.org -P password123 you@example.org

Read the message body from a file instead:

mal -M mesgfile -t joe@example.org -P password123 you@example.org

Send the message to multiple recipients:

mal -M mesgfile -t joe@example.org -t jane@example.org -P password123 \
  you@example.org

If SSL is not working properly, use an insecure connection with -k:

mal -k -m 'hello!' -t joe@example.org -P password123 \
  you@example.org

To send a message from an address with a plus in it, manually specify the username with -u:

mal -m 'hello!' -t joe@example.org -u you -P password123 \
  you+malbot@example.org

Read a quick usage example:

mal

Man pages hopefully coming soon.