Added domain creation to templates for email.