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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbSendMail

Status
Not open for further replies.

terry22

Technical User
May 24, 2004
30
US
Hi

I am testing the vbSendMail dll. I unplugged my network connection to see what would happen when sending with the connection unplugged. It hangs. (Other than that it works beautifully) I tried setting a timer to catch this but that doesn't work.

I'd like to try and error catch for this if possible. It hangs on the .Send

Any ideas?

Thanks,
Terry
 
Hi Again,

I see in the docs that come with the vbSendEmail the following:

MessageTimeout

Public Property Get MessageTimeout() As Long
Public Property Let MessageTimeout(ByVal NewValue As Long)

This property controls how long, in seconds, the program should wait for a response after attempting to send the message body and any attachment before raising a time out error. If this property is not set, the program will wait 60 seconds on messages with no attachments, or 10 minutes for messages with attachments. Be careful about setting this property if you are planning to send large attachments; if you lower it too much, you may get time out errors on these messages.

and

ConnectTimeout

Public Property Get ConnectTimeout() As Long
Public Property Let ConnectTimeout(ByVal NewValue As Long)

This property controls how long, in seconds, the program should wait for a response after attempting to connect (or sending a request to the SMTP server other than the message body) before raising a time out error. The
default value is 45, which should be more than enough time. Change this value only if you expect occasional connect time-outs and you don't want to keep the user waiting more than 45 seconds.

But, I don't understand how to use them ...

How should these be implemented?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top