I need a c++ program that will send a command from the dos prompt to Telnet. I will also need a loop command, as I intend on perferming the action over and over. I want input for: port, server address, helo, mail from, rcpt to, subject, and data. This program will be used for sending repeated emails to a friend, as he annoyed me, and I now need revenge. I know how to send one email through telnet, I just want to send fifty or so. I would also like the source code to this project, so I can modify it, and learn from it.
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
The operating system that it will be used on is: Windows XP Professional.