C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 07-30-2006, 06:56 AM   #1
Registered User
 
Join Date: Jul 2006
Posts: 2
Question smtp/POP and the internet

I've been trying to find out how to access email servers or files over the internet in c++, but with no luck. I don't know how to do it.I have been searching for a while now.Maybe DLL's? Or using calling windows functions?? I don't have a clue. Can anyone help me?? Or give me link or whatever. I would be very grateful. Thankyou.

Last edited by Salem; 07-30-2006 at 07:44 AM. Reason: Snip "please send me email" address
mcchicken is offline   Reply With Quote
Old 07-30-2006, 03:03 PM   #2
Registered User
 
Join Date: May 2005
Location: Texas
Posts: 103
If you don't know the mail exchange server for an address for the following
Code:
nslookup -querytype=mx gmail.com
but replace gmail.com with the domain for
whatever email address you want. You do this on Command Prompt, and cannot guarantee that it will work if it is not used properly.
__________________
Be easy on me...only 14
toonlover is offline   Reply With Quote
Old 07-31-2006, 04:08 AM   #3
Registered User
 
Finchie_88's Avatar
 
Join Date: Aug 2004
Posts: 146
try:
Code:
telnet smtpservername portnumber
Portnumber is 25 for SMTP. For POP, try:
Code:
telnet popservername portnumber
Portnumber is 110 for POP.
__________________

Finchie_88 is offline   Reply With Quote
Old 08-21-2006, 10:14 AM   #4
Registered User
 
Join Date: Jul 2006
Posts: 2
Unhappy

ok. I don't mean to sound dumb, but what do i do with that 'snippet'? Where do i put it in my program?? So, i just put in my code "nslookup -querytype=mx msn.com"?? Sorry, but i do not comprehend what you are trying to say.
mcchicken is offline   Reply With Quote
Old 08-21-2006, 10:27 AM   #5
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,680
Moved to networking forum.

Start by reading all the intro material in this forum.

You didn't really say which OS/Compiler you're using, or wether you're after some kind of "canned" solution, or wether you're interested in learning how to do this "from the ground up".

Also, try and respond quicker than once a month next time

The first port of call for low level network programming is usually the "beej" tutorial.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22