Basically what I did first I compiled your example,
It only returned 220 Gretting from my SMTP server,
then (HELO command) nothing from server..
I downloaded a packet spy program and logged 2 log files..
log 1 is I'm sending a email "This is test" using my email program
log 2 is your example "This is test" as email body
Then I compared them..
Looks like if in log 1 it was sending
HELO aaa.bbb.com 13 10
in log 2 it would look like
HELO aaa.bbb.com 0 0 0 0 4 0 0 0 7 0 0 4 0 0 13 10
And this with every command..
Then I made changes in your DBPro example:
CRLF$ = CHR$(13) + CHR$(10)
And I changed evey TCPPrint to:
TCPPrint(..whatever here.., email$ + CRLF$)
so it would send CRLF for sure.
After that I got responses (using your SMTP example, now modified)
I got 250 OK for different comands..
log 2 now looks like this:
HELO aaa.bbb.com 13 10 0 0 0 0 4 0 0 0 7 0 0 4 0 0 13 10
But now the problem is it's not responding to body message (to "." 13 10)
The last thing it responds is
"DATA", 13 10
It responds with:
(35x something) Ready for your data
And then I send message body and no responses from server..
If I will wait long enough it gives me Time Out message..
1. Could you check that string of correct lenght is send to sever? Maybe length is not right or something.
2. Could you look at packets it sends out? You will see what I'm talking about.
Thanks a lot! I think that the problem is to get packet size correct and it will solve everything..
mhack
Hi-Res textures for your game.. [url]akdusa.com[/url]