Koozali.org: home of the SME Server

email file

TMP

email file
« 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

guestHH

Re: email file
« Reply #1 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

TMP

Re: email file
« Reply #2 on: January 21, 2002, 09:20:38 PM »
Thanks for the help.

Arkman

Re: email file
« Reply #3 on: January 21, 2002, 11:05:48 PM »
You could always just use Pine!

type: pine  - at the command prompt