format message with attachments