|
|
|
|
|
#17119 - 07/02/06 07:05 PM
Email from C++?
|
Junior Member
Registered: 07/02/06
Posts: 12
Loc: 127.0.0.1
|
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,: telnet mail.mycbsi.com 25
220 pbrane.mycbsi.net ESMTP Postfix
helo x
250 pbrane.mycbsi.net
mail from: test@server.com
250 Ok
rcpt to: nyphe_@hotmail.com
250 Ok
data
354 Please start mail input.
This is a test.
.
250 Mail queued for delivery.
quit
221 Closing connection. Good bye. 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? 
|
|
Top
|
|
|
|
Sponsored Links
Sponsor 
|
|
| Top |
|
|
|
#17121 - 07/03/06 05:33 PM
Re: Email from C++?
|
Junior Member
Registered: 07/02/06
Posts: 12
Loc: 127.0.0.1
|
Thanks, but I've never worked with php before... is it time to brush up?
And I know of an smtp server that allows non passworded send, I used it in my first post^^ Thanks
|
|
Top
|
|
|
|
#17123 - 07/03/06 08:12 PM
Re: Email from C++?
|
Junior Member
Registered: 07/02/06
Posts: 12
Loc: 127.0.0.1
|
Ok, I'll look into it and get back to you on success. Thanks!
|
|
Top
|
|
|
|
#17124 - 07/05/06 05:52 PM
Re: Email from C++?
|
Junior Member
Registered: 07/02/06
Posts: 12
Loc: 127.0.0.1
|
--EDIT-- Ok, thanks. The guy I'm programing this with suggested perl. I looked into php, and you were right, it is pretty simple. The only problem is, regardless of if we use perl or php, is we still need to know how to send data over/to the internet through C++. More importantly, being able to have the user dictate the data that is sent. Any ideas?
|
|
Top
|
|
|
|
|
6870 Members
44 Forums
10508 Topics
45254 Posts
Max Online: 677 @ 06/30/07 10:06 PM
|
|
|
1 Registered (Artic Warrior),
12
Guests and
4
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|