Posted by: Slyce
Email from C++? - 07/03/06 12:05 AM
I need to be able to make it so the user's response(s) are emailed to me, 'behind the scenes' so to say. I know how to make their input a character array and all that easy jazz, but I have no idea on how to make it so the responses are emailed to me. Someone told me to try to pipe the commands into telnet, but that wouldn't let the responses change and be emailed. (right?) I can telnet an email,:
That worked just fine, but I had to type all of the commands in. That I know of, there is no way to automate the commands in, and even more so, turn the echo off for that. I don't have to telnet in, that's just the only thing I've tried. Anyone have any ideas or any knowledge that I lack?
telnet mail.mycbsi.com 25 220 pbrane.mycbsi.net ESMTP Postfix helo x 250 pbrane.mycbsi.net mail from: firstname.lastname@example.org 250 Ok rcpt to: email@example.com 250 Ok data 354 Please start mail input. This is a test. . 250 Mail queued for delivery. quit 221 Closing connection. Good bye.