attachments are working
authorize emails based on sender code