: !/bin/sh fnameprefix="$1" fnamepostfix="$2" extraextrafile="$3" if [ -z "$fnameprefix" ]; then fnameprefix="ex_" fi email_file() { for emailaddr in $emaillist do # Force mail to pass DATE as GMT TZ=''; export TZ ( echo "Please Find Attached Information " for extraf in $extratxtfiles do if [ -n "$extraf" ]; then cat $extraf echo " " fi done for attf in $attfiles do uuencode $attf `basename $attf` done ) | mail -s "$subject" $emailaddr done } ########################## # email totals report repfile="${fnameprefix}totrep_${fnamepostfix}.txt" csvfile=`ls ${fnameprefix}totcsv_${fnamepostfix}*.csv` #logfiles="${fnameprefix}${fnamepostfix}_LOGS.zip" logfiles="" attfiles="$repfile $csvfile $logfiles $extraextrafile" extratxtfiles="${fnameprefix}ERROR_WARNING_${fnamepostfix}.rtf" subject=`head -1 $repfile` emaillist="$WBADMINEMAIL" #emaillist="support@transmit.com.au itaccounts@uws.edu.au" emaillist="support@transmit.com.au" #emaillist="support@transmit.com.au rod@transmit.com.au" #emaillist="rod@transmit.com.au" #emaillist="catcom rod@transmit.com.au" #emaillist="catcom" #emaillist="bilmax21" #emaillist="$WBADMINEMAIL rod@transmit.com.au" email_file exit 0