[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: send email from commandline



On Tue, Apr 27, 2004 at 10:40:28AM -0500, Rick Weinbender wrote:
| What is the correct syntax for sending
| mail from the command line.
| (server runs qmail and mutt)
| *
| I found the following, but doesn't seem to work(below)
| 
| mail -s "some subject" user1@domain.com
| 
| I want to incorporate this into a script but when I enter it
| at the commandline it acts like it is needing more.

It is waiting for the message to be given on stdin.  Use shell
redirection to give it the message from a file or a "here-document".

mutt can also be used like that, if you prefer.

-D

-- 
A mouse is a device used to point at the xterm you want to type in.
  --Kim Alm, a.s.r
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

Attachment: signature.asc
Description: Digital signature


Reply to: