SMTP

Hey!

Can anyone please either link a source code that's an SMTP with Gmail or write one on here please? I can figure out how it all works after I get the source code for it, I'm still pretty much a beginner, but I know how most of the things work.

I've been looking around on the internet and have been having problems with finding a good SMTP with c++.

Oh! But one issue I have is I'm using Dev C++, and it doesn't have stdafx.h... So that's a problem with that. If you absolutely have to use it, can someone please show me how to get it for Dev?

And also, if it's possible, can we attach files in the SMTP?

Thanks!

EDIT:

I'm sorry, but uhm I wanted to see an example of a Simple Mail Transfer Protocol, so I can send things over the internet without having to log onto Gmail.

FOR EDUCATION PURPOSES ONLY

I've created a keylogger already, and wanted to take it to the next step so when you hit a certain button, it would send the file it generated to an email adress.

If you couldn't attach any files, I could easily work my way around the keylogger and get it to work.

Right now I'm just struggling to find how to actually make the SMTP... I'm not planning to go out and steal passwords, though. Education purposes only.

FOR EDUCATION PURPOSES ONLY

Thanks
Last edited on
What do you mean by "an SMTP"?

SMTP is a comunication protocol, which is used by various kinds of application.
Last edited on
If you are looking for a pre-built library, try VMime [1].

However, as Andy has stated SMTP is a protocol. It's like HTTP or FTP.

One a side note, Gmail requires that all incoming/outgoing content should be passed via SSL [3].


[1] http://www.vmime.org/
[2] http://sourceforge.net/projects/vmime/
[3] http://mail.google.com/support/bin/answer.py?answer=13287
closed account (DSLq5Di1)
A lot of information regarding how SMTP & SSL/TLS works with various examples here:-
http://www.coastrd.com/

Your easiest option is to use a pre-made class:-
http://www.codeproject.com/KB/IP/smtp_ssl.aspx (requires openssl, included in the source)
http://www.naughter.com/smtp.html
I'm sorry, but uhm I wanted to see an example of a Simple Mail Transfer Protocol.

FOR EDUCATION PURPOSES ONLY

I've created a keylogger already, and wanted to take it to the next step so when you hit a certain button, it would send the file it generated to an email adress.

If you couldn't attach any files, I could easily work my way around the keylogger and get it to work.

Right now I'm just struggling to find how to actually make the SMTP... I'm not planning to go out and steal passwords, though. Education purposes only.

FOR EDUCATION PURPOSES ONLY

Thanks (I'll add this to the topic)
closed account (DSLq5Di1)
The links provided have all the information and examples you need.. did you read through any of them??
Yeah, I opened all the links but had to go to bed (In thailand atm), so didn't have a chance to read through any of them before i posted that. I'm reading through now, though.
Topic archived. No new replies allowed.