WodSmtp is making my exe Not Responding (General questions)
Hello All
I am using ur Liecensed Component wodSmtpCom for Mailing.Sometimes i am getting a unique problem. Sometimes my exe is going to Sleep Mode. However i already set Timeout Property to 30 sec, but my exe doesnt through any Timeout ERROR,Last time Exe was in Sleep Mode approx. 40 mins. How it's Possible?
Can you pls guide me how to solve this Prob.?
Thanks in Advance.
Here is My code
Dim smtp1 As New WODSMTPCOMLib.wodSmtpCom
smtp1.LicenseKey = XXXX-YYYYYY-ZZZZZ
smtp1.Timeout = CInt(Val(strSMTPTimeOutMs) / 1000)
smtp1.Blocking = True
smtp1.HostName = strMailIP
smtp1.Connect
With smtp1.Message
.To = pInStrTo
.From = pInStrFrom
.Subject = pInStrSubject
.HTMLText = pInStrBody
End With
smtp1.SendMessage
smtp1.Disconnect
Set smtp1 = Nothing
Re: WodSmtp is making my exe
Hi,
Can you be more specific? Can you please try running the application in debug mode?
Where exactly does your application get *stuck*? On what method?
Regards,
Damba
Re: WodSmtp is making my exe
I already tried in debug mode, but we did not recive that error on that time, actully we send aprox 10000 mails daily, so it's more difficult to find that where we got ERROR. In my code I m also handling Errors, so whenever i got any error, i mark that error in my LOG File, but that time i didnt found any ERROR in my log, just exe was running on Sleep mode. I scheduled my exe , my Scheduled task is showing Running State, my task bar was showing that Exe Instance Running, but actully it's in sleeep mode.
I think May be smtp1.Blocking = True is cause of that error.
one more question is, if i setted my Smtp.timeout=30 seconds, then why my exe was in Sleeping Mode? it must be through any ERROR after 30 seconds atleast TIMEOUT Error.
Re: WodSmtp is making my exe
Hi,
In which environment are you using wodSMTP?
Why don't you simply use Timeout Property on this way:
[code]smtp1.Timeout = 30
smtp1.Connect[/code]
Which version of wodSMTP are you using? You can check version using wodSMTP Version Property
[code]MsgBox smtp1.Version[/code]
Drazen
Re: WodSmtp is making my exe
I m Using ur component in VB6. My SMTP Version is 1.3.9.76
I used smtp1.Timeout = CInt(Val(strSMTPTimeOutMs) / 1000), its a part of my code, because i m fetching strSMTPTimeOutMs from My INI File where i mentioned My Timeout in Ms.
If u can give me ur gmail id, so we can chat also.
Re: WodSmtp is making my exe
Hi,
Are you able to reproduce this timeout problem with our samples maybe?
If you receive problem only in you application, can you maybe send us some simple sample that will duplicate it?
You can send your sample to:
techsupport@weonlydo.com
Drazen
Re: WodSmtp is making my exe Not Responding
My dear Friend,
Here is my detailed code, which me using in my VB Exe.We are using our SMTP Server, so we dont need to Authenticate.
i have one query
if i setted my Smtp.timeout=30 seconds, then why my exe was in Sleeping Mode? it must be through any ERROR after 30 seconds atleast TIMEOUT Error.
Function SendMsg(pInStrFrom As String, pInStrTo As String, pInStrCC As String, _
pInStrBCC As String, pInStrSubject As String, pInStrBody As String, _
pInStrMIMEType As String) As Integer
On Error GoTo ErrWhlSendMsg
Dim smtp1 As New WODSMTPCOMLib.wodSmtpCom
smtp1.LicenseKey = XXXX-YYYYYY-ZZZZZ
smtp1.Timeout = CInt(Val(strSMTPTimeOutMs) / 1000)
smtp1.Blocking = True
smtp1.HostName = strMailIP
smtp1.Connect
With smtp1.Message
.To = pInStrTo
.From = pInStrFrom
.Subject = pInStrSubject
.HTMLText = pInStrBody
End With
smtp1.SendMessage
smtp1.Disconnect
Set smtp1 = Nothing
SendMsg = 1
Exit Function
ErrWhlSendMsg:
Set smtp1 = Nothing
SendMsg = 0
lognotify SendMsg , ERROR , Err.Number, Err.Description
End Function
Re: WodSmtp is making my exe Not Responding
Dheeraj,
I already reply to your ticket question.
Can you please check answer there?
Drazen