fixed email with attachments