// with email Body and attachement
(uuencode $OUTFILE attachedfilename ; echo "email body") | mail -s "subject here ..." $EMAILRCP
//email body is null ,no attachment
echo | mail -s "No file extracted for onholding inquirenow forms on $DATE, please check ..." $EMAIL1
//sending multiple attachements
(uuencode $REPORTFILNAME1
$REPORTFILNAME1
;uuencode $REPORTFILNAME2
$REPORTFILNAME2
)
| mail -s "Onholding Inquirenow Form Info" $EMAIL1
//multiple attachments and mail body
(uuencode $PA_LITE_HOUSEKEEP_FILE PA_LITE_HOUSEKEEP_LIST_$today.csv ; uuencode $PA_LITE_HOUSEKEEP_LOG PALiteAHousekeep.log ; echo "Pls see attached files.") | mail -s "PA Lite Housekeep Status Report $today" $EMAIL1
//If &&
if [ -s $REPORTFILNAME1 ] && [ -s $REPORTFILNAME2 ]
if (test -f $REPORTFILNAME1 && test -f $REPORTFILNAME2)
if (!reply && !acquireResult)