Back to product page

Connecting Event


Fires when wodSmtp tries to connect to the server.

Syntax

  • Basic
object.Connecting (ByVal Hostname, ByVal Port)
The Connecting(object,Hostname,Port) syntax has these parts:
objectAn expression evaluating to an object of type wodSmtp
HostnameA String value. Holds hostname where wodSmtp tries to connect.
PortA Long value. Holds port on the server where wodSmtp tries to connect.

Remarks

Connecting event is fired when wodSmtp initiates connection to SMTP server. It can be result of calling Connect or SendMessage methods. If connection is successful, Connected event will be fired. If connection fails, Disconnected event will be fired.

This event exists for you to track down on which hosts is wodSmtp connecting to - since there can be more than one mail exchanger for recepients domain.

Platforms

Windows