fixed internal server error when clicking emaillink