Back to product page

Connect Method


Connects to the SMTP server.

Syntax

  • Basic
object.Connect()
The Connect(object) syntax has these parts:
objectAn 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.

Platforms

Windows