UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
July
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Our Sponsors
Latest Postings
Geek Code Write in 1993 I like it
by Gizmo
07/18/08 11:05 PM
Miss mash of urban ledgends told so well
by Gizmo
07/18/08 11:04 PM
I read this and laughed
by Gizmo
07/18/08 10:58 PM
Vote for President
by IceMyst
07/18/08 06:38 AM
question about IE and CSS
by Gizmo
07/17/08 11:28 PM
XBox Live Port Forwarding
by Gizmo
07/14/08 09:41 AM
EeePC Delivery
by Gizmo
07/14/08 03:18 AM
Pre Login message?
by Shinobi
07/13/08 10:44 PM
Comcast upgrades Upload Speed!
by Gizmo
07/11/08 12:39 AM
Robert Moore aka MooreR PC Magazine Subscription
by Gizmo
06/22/08 01:36 PM
Topic Options
#17119 - 07/02/06 07:05 PM Email from C++?
Slyce Offline
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,:
Code:
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?
_________________________
I don't hack. I simply test security, free of charge.

http://www.slyce.tk/

Top
Our Sponsors
Sponsor Our Sponsors

Top  
#17120 - 07/03/06 06:03 AM Re: Email from C++?
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6909
Loc: Portland, OR; USA
Well, you could try having webhosting and have a php script interpret items submitted to it... that way your cpp program sends data to the php script and it just does all the parsing... At least thats semi simple to setup :x...

I'm not sure in sending mail from cpp, i know you'd have to have access to a smtp server to send out, but there aren't many that allow a non-passworded send...
_________________________
Donate to UGN Security here.
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#17121 - 07/03/06 05:33 PM Re: Email from C++?
Slyce Offline
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
_________________________
I don't hack. I simply test security, free of charge.

http://www.slyce.tk/

Top
#17122 - 07/03/06 07:24 PM Re: Email from C++?
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6909
Loc: Portland, OR; USA
Ahh, well, you CAN use SMTP, make sure they allow it, but hey to each their own...

PHP isn't too difficult, the mail function itself is at:
http://us2.php.net/manual/en/ref.mail.php
_________________________
Donate to UGN Security here.
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#17123 - 07/03/06 08:12 PM Re: Email from C++?
Slyce Offline
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!
_________________________
I don't hack. I simply test security, free of charge.

http://www.slyce.tk/

Top
#17124 - 07/05/06 05:52 PM Re: Email from C++?
Slyce Offline
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?
_________________________
I don't hack. I simply test security, free of charge.

http://www.slyce.tk/

Top
#17125 - 07/05/06 11:39 PM Re: Email from C++?
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6909
Loc: Portland, OR; USA
PHP and Perl are pretty straight forward, however PHP is more streamlined and is what I'd recommend.

And with PHP what you'd do is set it to use GET requests, and have your C++ ap send to a url (perhaps code a tiny web browser into it), you'd have the PHP app just read what comes out and return a "your submission is succuessful" message.

I could have a php script configured for you, but I don't code for free ($75/hr) and I'd need to have all the fields known when I started... Not sure how long it'd take as it'd depend on how many fields and how you'd like the mail to look... It should be simple enough, especially with what is displayed to your "browser" (the built in web browser in your cpp app).
_________________________
Donate to UGN Security here.
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top



Forum Stats
6904 Members
44 Forums
10241 Topics
44953 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6909
§intå× 3246
UGN Security 3232
IceMyst 1448
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
naskweeky, DJ ODEN, Maurino, alfred1964, sadasd
6903 Registered Users
Who's Online
0 Registered (), 5 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
New Update Humpday
by Gizmo
07/17/08 08:21 AM
IRC Restored
by Gizmo
07/15/08 12:50 AM
IRC Server Funding
by Gizmo
07/01/08 02:48 PM
Fixed: Front Page - News Display
by Gizmo
06/25/08 11:25 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!