You can try with this script....this will show you how to enter subject ,body and attachment.
FILE_NAME="one.xls"
`cat > mail_filewatcher.log <<!
Team - Here is the action to be taken based on this mail.
Please work on the exceptions listed in the attachment to ensure.
THIS IS A SYSTEM GENERATED E-MAIL...PLEASE DO NOT REPLY.
!\`
no i tried this and i did not recvd any attachments in the mail... instead i recvd ...... the content of the file in the body of the mail...............
can anyone guide me .... how could i send a file as an attachment thru unix to outlook...... or any mailbox?????
uuencode :- is the unix command to encode a file for sending as an attachment.
file_to_be_snt_as_attachment :- is the name of the file you want to attach
file_name_you_want2b_seen_in_attachemnt :- once you receive the mail you see this name in the attached file. (Note :- This could be the same as argument 1).
mailx -s :- -s is for the subject and then the mail id
Hope this helps. This works in solaris to MS Outlook and to Lotus notes.