You’ve got to upload a copy of the phpmailer class file to your own site. It’s free at the phpmailer website.
Put it wherever you want on your site and include it in your script to use it.
I don’t know whether or not it will work on DreamHost though, because it depends on how their servers are configured (whether or not mail will get out!)
I’m interested in seeing the answer as well.