added auto email send hooks