Results 1 to 5 of 5

Thread: Mail(smtp), and a little network problem..

  1. #1

    Thread Starter
    Lively Member The_Fog's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Posts
    65

    Mail(smtp), and a little network problem..

    haven't done much Mapi programming using vb, so I'd like to know if any of this is possible..

    1. Can I connect to an smtp server, or do I haveto use MAPI and load a profile, etc?

    2. Can I check the server for new mail without removing/deleting them from the server?

    Well.. I think that's it for this time.. Ohh.. Yes. I forgot.. Is there a way ( like a windows api or something) to check if the user is connected to a network using the dialup connection?
    Hmm.. Well.. what I want from it is to know if the user is connected to the internet or not. But if I'd ask that, then you'd just say something like "Use the winsock control to check if you can access a server." And I would say "No" since there is no guarantee that the servers of my choice will be avaliable tomorrow..

    Anyway.. All help would be highly appreciated..

    /Benny
    They will try to steal everything you own,
    It goes on and on and on...


    Pain - On and On

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Post

    IMHO, you do need to use MAPI to connect to SMTP based mail servers.

    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  3. #3

    Thread Starter
    Lively Member The_Fog's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Posts
    65
    Hmm.. ok.. can I use the mapi control that comes with VB? Do you have any good examples of how to connect to an smtp server.. The vbMail example sucks..
    They will try to steal everything you own,
    It goes on and on and on...


    Pain - On and On

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    IMHO, you do need to use MAPI to connect to SMTP based mail servers.
    No, you only need MAPI to connect to MAPI servers (ie - Microsoft Exchange). You can connect directly to an SMTP server using the Winsock Control or API (or thru telnet outisde of vb, for that matter).

    2. Can I check the server for new mail without removing/deleting them from the server?
    You would connect to an POP3 server for getting mail. (SMTP is for sending.) Yes, you'd issue the POP3 command for getting a message, then just don't issue the POP3 delete command.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226

    Winsock is the answer...

    You can refer to RFC 1939 for POP3 specifics, and RFC 2821 for SMTP specifics. You can find the RFCs at www.rfc-editor.org

    If you need help with specific VB coding issues, simply ask (I've made POP3 and SMTP servers, so I know how to communicate with them)
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width