ciao, usa phpmailer:
http://phpmailer.sourceforge.net/