Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: TMP on January 21, 2002, 06:12:58 PM

Title: email file
Post by: TMP on January 21, 2002, 06:12:58 PM
Just a quick question looking to email a file from command line.

Would appreciate a point in the right direction.

Thanks
Title: Re: email file
Post by: guestHH on January 21, 2002, 07:22:41 PM
Hi,

Just a simpel example script:

----------------------
#!/bin/sh
FROM_DOMAIN=foor.bar
MAIL_ADDRESS=mailrecipient
ATTACH_FILE=/var/log/messages.monitor
mail -s "Star Support Monitor $FROM_DOMAIN: $ATTACH_FILE1" $MAIL_ADDRESS < $ATTA
exit 0
---------------------

guestHH
Title: Re: email file
Post by: TMP on January 21, 2002, 09:20:38 PM
Thanks for the help.
Title: Re: email file
Post by: Arkman on January 21, 2002, 11:05:48 PM
You could always just use Pine!

type: pine  - at the command prompt