views:

304

answers:

4

Hey, Can you recommend me what C++ library or classes are available for sending email via SMTP in C++. I'm on Windows platform. I need a library which supports attachments and SSL connections. What are the options available. I'm not into implementing my own :)

Regards

EDIT: Oh I forgot to mention I'm using Visual C++ 6

+1  A: 

I found a project that might be what you're looking for: lib smtp.

Jared Oberhaus
Well, I need one which supports attachments and SSL connection.
hab
Yep, that is true... Looking at its API I hoped that it would have callbacks so that you could chain it with something like OpenSSL and do encryption that way, but that doesn't seem to exist. You can still modify it to do that, as it's open source. There are other projects that on the surface look better (libsmtp++, libsmtp--), but those appear dead. Hopefully you can find a project that is more up-to-date.
Jared Oberhaus
A: 

I've had good luck with the ATL class CSMTPConnection, but I don't think it supports SSL.

Mark Ransom
Yes, I have found few but they don't support SSL too.
hab
A: 

Try Ultimate-TCP/IP, free on Code Project - it includes support for SMTP and you can just compile in the parts you want. It's very good.

Rob
A: 

You don't need any library. (never on Windows)
Just use Winsock or COM

Well as I mentioned in my post, "I'm not into implementing my own :)"Thanks
hab