smtp/POP and the internet

This is a discussion on smtp/POP and the internet within the Networking/Device Communication forums, part of the General Programming Boards category; I've been trying to find out how to access email servers or files over the internet in c++, but with ...

  1. #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

  2. #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

  3. #3
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154
    try:
    Code:
    telnet smtpservername portnumber
    Portnumber is 25 for SMTP. For POP, try:
    Code:
    telnet popservername portnumber
    Portnumber is 110 for POP.

  4. #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.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

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