i want to validate email addresses to make sure they are college edu addresses. What is the best way to do that? I have a list of colleges in a database and for each one I specify a url that should be part of a user's email address for that college. So for harvard, the url is "harvard.edu," because all of the harvard email addresses has that as part of their hostname.
Does anyone have a PHP function that will allow me to do that?