Sendmail to send attachements

Hello All,

I have been trying to execute a script to send me alerts using a log file of a job which can be success or failed. But when I try to send log as attachment using sendmail it does not not send any email but job runs fine. I am not able to debug it. Please help to get the correct code.

thanks
Ross

 Alert job failed/complete
boundary='=== MESSAGE ==='
cat <<EOM | /usr/lib/sendmail -t
Subject: $job_status for $host 
To:${mail_list} 
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED
    BOUNDARY="${boundary}"
${alert}
--${boundary}
Content-Type: text/html;
This message was generated by ${0}
--${boundary}
Content-Type: text/plain;
Content-Displosition: attachement; filename=`basename $log`
`cat $log`
--${boundary}--
EOM

I noticed few typo:

Content-Displosition: attachement; filename=`basename $log`