wodSmtp ActiveX Control - Connect Method
      
 

Description

Connects to the SMTP server.


Return Type

None  


Syntax

object.Connect



The Connect Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtp.

Remarks

This method will connect to SMTP server specified in Hostname property. If Hostname property contains more than one line, it will connect to the server that is in the first line of Hostname property value.

When connection is initiated, Connecting event will fire and it will contain hostname of SMTP server where wodSmtp is trying to connect.

There is no need to issue Connect method manually, because if you use SendMessage method, it will do the job for you.