Re: wodSmtp.dll and DrWtsn32 - WeOnlyDo Discussion board

Re: wodSmtp.dll and DrWtsn32 (General questions)

by Chris Demmings, Monday, September 08, 2008, 14:47 (5919 days ago) @ Chris Demmings

Chris,


Can you please add DebugFile Property to your wodSMTP code and send us output when error occur.
[code]smtp1.DebugFile = c:\debug.txt [/code]
Please make sure that you add DebugFile Property before calling any wodSMTP Method.


Drazen


Thanks.... Will do.


Hey Drazen,

I made the change to our DLL Friday and lucky (?) for me, we started having serious problems Friday night.

It appears from the log that the problem is occuring when the customer is doing attachments on their eMails. In their case, they are doing two attachments. One is a .PDF and is 605K and the other is a .DOC and is 111K.

Our email application was going down very quickly and here is what I found at the bottom of the ERROR.TXT file that was captured by the new statement included in my code (this is the end from 8 different times that it bombed).

------
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.3eee.27810D39.e10.FA0--
*** Sending 41038860 bytes:
.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.51db.27929225.1390.B1C--
*** Sending 41075420 bytes:
.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.5afa.27A3BA7B.1354.CC4--
*** Sending 40975412 bytes:
.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.6d9e.27A890F2.11f8.17AC--
*** Sending 40966652 bytes:
.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.ac6.27A98506.17c0.16F4--
*** Sending 40665492 bytes:
.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.5dfb.27AB1829.29c.700--
*** Sending 40665492 bytes:
.


AAAAAAAAAA==
------_=_wodSmtp.61b1.27ABF80A.1690.1684--
*** Sending 40665492 bytes:
.


AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAA==
------_=_wodSmtp.6d40.27D14098.29c.1570--
*** Sending 41036700 bytes:
.

--------------------------------------

I took out the code that does attachments for the time being. Here is what it looks like:


' CJD(20080905) - Problem code
' Are there attachments for this email ?
If Not (colAttachmentFiles Is Nothing) Then
If colAttachmentFiles.Count > 0 Then
' If this eMail is the same as the last one - don't redo the attachments...takes too long.
If bDifferent Then
Call WriteLogFile( Setting attachments ) ' CJD(20080905)
For nIndex = 1 To colAttachmentFiles.Count
Call WriteLogFile(colAttachmentFiles(nIndex)) ' CJD(20080905)
wodSmtp1.Message.Attach (colAttachmentFiles(nIndex))
Next
End If
End If
End If

--------------------------

Before taking out the code, I tried setting the wodSmtp1 instance to Nothing and then re-creating every time, but that had no effect.

Also, it appeared that it would send anywhere from 1 to 10 emails with attachments before it bombed.

When I included myself on the email list, I received my attachments that they look fine, so it does not happen every time.

Thanks.

Chris.


Complete thread: