devi usare la funzione mail di php:
www.php.net/mail

oppure:
http://phpmailer.sourceforge.net/