Before Zimbra, I used mailx with postfix like this:
cat somefile | mailx -s "SOMETITLE" someemail@mydomain
I do the following:
Code:
#################################
# Create report and email headers
#################################
echo "to:program.notify@somedomain.com" >/home/doug/reports/reports.txt
echo "from:root@somedomain.com" >>/home/doug/reports/reports.txt
echo "subject:Distribution List Summary" >>/home/doug/reports/reports.txt
####################
# Send out the email
####################
/opt/zimbra/postfix/sbin/sendmail -t </home/doug/reports/reports.txt Doug
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."