Set valid mail function at email adresses