Fix display of domain name in emails