Utilizzi un SMTP esterno ed una classe tipo phpmailer.