Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock Control or API for E-mail speed ??

Status
Not open for further replies.

Sheriff

Programmer
Sep 1, 2001
34
US
Hi, I am undertaking a project that requires the ability to send email. I'm not familiar with this aspect of programing and help would be appreciated. The ability to send fast is also a factor.

Thanks
Sheriff
 
I've been using this:

I've been using it for a couple of years now with no trouble.. except:

In the PopClient class, the "Loop counter" variable a is declared as an Integer. If your mailbox accumulates too many emails, you'll Overflow this variable. I changed mine to Long and that seems to have fixed it with no noticeable side-effects

In the Data procedure of the SmtpClient class, you'd do well to add a Date header to the message. I added
sendStr "Date: " & Format(Now, "ddd, dd mmm yyyy hh:nn:ss") & " -500" & vbCrLf

As for speed, I don't know how it compares to other methods. Seems pretty speedy to me.
 
Thank you Schroeder,
I will try that

Sheriff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top