fixed typo in passing the attachments; pass the message body as multipart/mime