#!/bin/bash

if [ -f /etc/maillist ]; then
	. /etc/maillist
else
	echo 'can not found address book'
	exit 1
fi

if [ -z "'$1'" ] || [ -z "'$2'" ]; then
	echo 'error parameter'
	exit 1
fi 

if [ $enable == 1 ]; then
	echo "'$1'" | email -s "'$2'" null -cc $list -c /etc/email
fi
