send mail from AIX unix with multiple attachment

Hi,

I have the below code for sending email from AIX unix.
I need the body of the mail should content of errornotify.txt file. i tested with cat errornotify.txt, it is not working...Also i need multiple attachments.

Can you please help me out on this.

(
echo "From:cus@xxx.xx.com"
echo "To: r.sivasankar@xxx.com"
echo "MIME-Version: 1.0"
echo "MIME-Version: 1.0"
echo "Subject: Notification Mail"
echo "Content-Type: text/plain;"
echo "Content-Disposition: attachment;"
echo " filename=RCI_VST_PROCESS_DETAILS_20110218_063244.csv"
echo "Contents"
cat errornotify.txt
) |sendmail -vt

Regards,
Siva

---------- Post updated at 03:33 AM ---------- Previous update was at 01:17 AM ----------

Please help me out in this

What exactly is not working?
To see how mails with attachments are sent, search the forum for words like "mail attachment uuencode" since this is a very common question.
In your example there is no recipient specified.

Also maybe just use the mail command instead of sendmail.

Thanks Zaxxon...I know how to send mail with "Mail and Mailx" command...i just want use sendmail command...
in my previous scrap i clearly mentioned, multiple file attachement not working.

So if it is only attaching multiple files, please have a look at the part of my answer addressing that problem already:

What is not clear from that?