|
-
Jun 18th, 2001, 06:35 AM
#1
Thread Starter
Lively Member
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
-
Jun 18th, 2001, 06:38 AM
#2
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
-
Jun 18th, 2001, 06:45 AM
#3
Thread Starter
Lively Member
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
-
Jun 18th, 2001, 11:44 AM
#4
Black Cat
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.
-
Jun 18th, 2001, 03:49 PM
#5
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|