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? How do I set these properties to say 15 seconds?
Thanks.
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? How do I set these properties to say 15 seconds?
Thanks.