Changed SendEmail with sendEmailTemplates in Domains.php
More fixes