Change ISP function calls in sendEmailTEmplate
Some improvements for detecting ISP in crons