use correct link for mail, error messages