It says not authorized when trying to open attachments