If you are wanting to include a text file inline then use this command
 
'cat {filename} | mail -s "Subject" [EMAIL PROTECTED]'
 
If you are wanting to attach a file, say something that is not text then use this command:
 
'uuencode {original_filename} {uuencoded_filename} | mail -s "Subject" [EMAIL PROTECTED]'
 
Works for me.
 
p.s. Might set your email program to turn off the HTML code in the compose, some reason ticks alot of foks off.
 
HTH,
Later..
Steven
 
----- Original Message -----
Sent: Tuesday, November 09, 1999 3:04 PM
Subject: command line email command

Does anyone know what command I would run to send an email (i.e. something to put in a script to send me an email when something happens?)
 
Thanks in Advance,
Jason

Reply via email to