This tutorial demonstrates sending simple HTML e-mail. This focuses on connecting to the SMTP server and sending e-mail rather than message composing.
More Tutorials