Richard Heyes has posted his STMP class for download (after some good testing):
With the help of a few anonymous people (thanks), I've rehashed the smtp class for PHP5 and made it available. It should be considered beater quality at the moment, so don't go using it for production code unless you like to live dangerously (Ooooh...).
He includes both a code example and a link to download the library.