It's fairly (compared with something tricky like HTTP) easy to write an SMTP client - it's a simple text based protocol so you can even experiment with it via telnet if you feel perverse enough.
I believe
libcurl[
^] also supports SMTP but I've not used it for anything but HTTP. That might help shield you from the problems of implementing an SMTP client yourself.
Cheers,
Ash