Update hostname in email templates