base64 encoding added for attachments