refactoring a bit for the fromEmail
adding Thresholds