Updated send message utility to use gridfs storage for attachments