From 40223d8eef034508bf2a96bdccd7c3afb0a1a703 Mon Sep 17 00:00:00 2001 From: Dylan Rees Date: Mon, 20 Jun 2016 18:56:54 -0400 Subject: [PATCH] Create sendmail.md (#906) --- pages/common/sendmail.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/sendmail.md diff --git a/pages/common/sendmail.md b/pages/common/sendmail.md new file mode 100644 index 0000000000..36194db499 --- /dev/null +++ b/pages/common/sendmail.md @@ -0,0 +1,15 @@ +# sendmail + +> Send email from the command line. + +- Send a message with the content of message.txt to the mail folder of local user `user_name`: + +`sendmail user_name < message.txt` + +- Send an email from you@yourdomain.com (assuming your local mail server is configured for this) to test@gmail.com containing the message in `message.txt`: + +`sendmail -f test@gmail.com you@yourdomain.com < message.txt` + +- Send an email from you@yourdomain.com (assuming your local mail server is configured for this) to test@gmail.com containing the file `file.zip`: + +`sendmail -f test@gmail.com you@yourdomain.com < file.zip`