I cant figure out when mailing from unix to Ms-Exchange account the files are being sent as body of messge instead of a attchment your required to open...Running from a script the following:
--------------------------------------------
DIR=/opt/files
EMAIL=user@domain.com
LMAIL-local@domain.com
if [ ! -z `ls ${DIR}` ]
then
print "Files exist"
ls ${DIR} | while read name
do
print "Sending Files to ${LMAIL}">> ${LOGFILE}
mailx -s "Files sent" ${EMAIL} < ${name}
done
else
print "No files found" >>${LOGFILE}
exit
fi
---------------------------------------------
--------------------------------------------
DIR=/opt/files
EMAIL=user@domain.com
LMAIL-local@domain.com
if [ ! -z `ls ${DIR}` ]
then
print "Files exist"
ls ${DIR} | while read name
do
print "Sending Files to ${LMAIL}">> ${LOGFILE}
mailx -s "Files sent" ${EMAIL} < ${name}
done
else
print "No files found" >>${LOGFILE}
exit
fi
---------------------------------------------