usa la classe phpmailer

č la migliore al mondo

http://phpmailer.sourceforge.net/