fix resedukle issue with MsSQL and removed Notices
fixes for emails in aop/aoe