reading email through SMTP/CDO library

accessuser1023

Registered User.
Local time
Today, 09:21
Joined
Nov 12, 2012
Messages
71
All,

I have another developer that decided to use the win 2000 CDO library to send email attachments from a DB. They were planning on doing the same thing again to retrieve the attachments on another machine from the same server they sent it to (client's). In this case they are doing what is common in CDO and sending emails using port 25 to smtp.gmail.com.

The emails are getting there of course, but I can't figure out a way to download the attachments from gmail now. I know I can simply use outlook and download emails from gmail using the IMAP protocol, but I want to try and connect directly to these servers because it puts less pressure on the customer. If I have to use outlook then I will have to deal with more updates and more possible errors that occur.

I cannot figure out a way to do this. I've looked at the CDO dll itself and it doesn't seem like there's any enumerations that will work. It looks as though Lagbolt might have confirmed that this isn't possible in thread number 164429. I can't post the link.

I just simply want to see if I can connect to an account with credentials put in the CDO configuration property and loop the items in the inbox. The code attached is using port 465 and won't connect without using the authentication line, but I get the same results using port 25 as well.

Anyone have any ideas other than the Outlook alternative? Looking for a direct connection solution. CDO also has ".GetInterface" and ".GetStream" methods, but I haven't tried them yet. Ideas anyone? Is there a direct method in CDO that can point to mail objects?

thanks!
 

Attachments

Users who are viewing this thread

Back
Top Bottom