I know I literally just signed up and am asking a question, so I understand if some of you may not want to help me with this.
Anyway, I've been working on a project for awhile of which I would like to implement an emailing feature, so I found what looks to be a pretty good client/library (whatever it is properly called) here:
http://www.codeproject.com/Articles/98355/SMTP-Client-with-SSL-TLS
I am using MinGW and (attempting to) compile from the CMD. I usually don't have a problem with doing so, but I am getting confused with having to include and link so many things.
I have tried compiling using:
C:\Code\C++\CSmtp_v2_3_ssl>g++ main.cpp -I openssl-0.9.8\inc32 -l openssl-0.9.8l
\out32
(And note: I am 99.9% sure everyone is in the right directory, so I don't think this is my problem)
Which makes the most sense to me, but it still doesn't work, it can't locate the CSmtp.h file. (I have tried many other combinations, but I am very confused)
If anybody could walk me though this, I would be forever in debt to you haha, I usually like working through programming problems on my owns, but I am at my wits end.
These are directions that are included with the library:
I have used openssl (http://www.openssl.org) in the sample code. The directory "openssl-0.9.8l" in the sample code contains all the necessary header files and the two pre-built static openssl libraries. If you would also like to use this version of openssl in your code, be sure to copy the entire "openssl-0.9.8l" directory to the root directory of your project and add "openssl-0.9.8l\inc32" to "Additional Include Directories", and also add "openssl-0.9.8l\out32" to "Additional Library Directories". |
If you need any more information to actually assist me, please ask me, I would really appreciate the help, thanks everyone!
Here is the download link to all the included files:
http://www.codeproject.com/KB/IP/smtp_ssl/CSmtp_v2_3_ssl.zip