There are a few examples of SMTP mail on this site - but I wanted an easy, reusable object to take care of all my e-mail requirements.
MD5 & BASE64 code from various authors, see module comments.
Compile the project into the DLL and it's ready to go...