[plug] Sending mail from command line

Bernd Felsche bernie at innovative.iinet.net.au
Tue Jul 15 16:24:17 WST 2003


On Tue, Jul 15, 2003 at 04:15:40PM +0800, Cameron Patrick wrote:
> On Tue, Jul 15, 2003 at 04:10:01PM +0800, Daniel Pearson wrote:
> 
> | However, i'm trying to send mail from the command line in one simple
> | command, without having to manually hit ctrl-d, etc.. does anyone know of
> | how to do so with 'mail'?
> 
> cat random_letter.txt | mail -s "Interesting subject" recipient at example.net

 $ <random_letter.txt mail -s "Interesting subject" recipient at example.net

Should also work. A bit faster too.

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!



More information about the plug mailing list