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...).