How can i send mail in c++ ?
Can i (teoretically) call TELNET from app ? For example: i call "telnet smtp.server.com 25", then: "helo", then: "mail from:<...@...>"......... SUPER idea, isn't it???!!
Printable View
How can i send mail in c++ ?
Can i (teoretically) call TELNET from app ? For example: i call "telnet smtp.server.com 25", then: "helo", then: "mail from:<...@...>"......... SUPER idea, isn't it???!!
You can't call telnet as such, but you can open up a socket and transmit the necessary data.
Look at http://msdn.microsoft.com/library for more information, under "Platform SDK->Networking->Windows Sockets Version 2".
If you are trying to learn something about C++ by doing that, well that is different but if you are trying to achieve a task why not using VB. It is probably going to take less time and you also have controls to do such a thing.