Back to product page

Connecting Method


Called when wodSmtp tries to connect to the server.

Syntax

  • Basic
object.Connecting (Owner, Hostname, Port)
The Connecting(object,Owner,Hostname,Port) syntax has these parts:
objectAn expression evaluating to an object of type IwodSmtpClientNotify
OwnerwodSmtp object. Reference to wodSmtpCom instance that called this callback method.
HostnameA String value. Holds hostname where wodSmtp tries to connect.
PortA Long value. Holds port on the server where wodSmtp tries to connect.

Remarks

NOTE: This method is called only if you implemented IwodSmtpClientNotify interface in your application, and wodSmtp1.Notification property has received reference to instance of your implementation.

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

Platforms

Windows