got the email attachments working