Click or drag to resize

CSmtp.connect Method

X#
Establish a connection to a remote SMTP server.

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD connect(
	cIP,
	nPort
) AS USUAL CLIPPER
Request Example View Source

Parameters

cIP (Optional)
Type: Usual
String containing the host name of an Internet server. Alternately, the string can contain the IP number of the site in ASCII dotted-decimal format (for example, 11.22.3.45).
nPort (Optional)
Type: Usual
Port number at cHostNameOrIP. If not specified, the connection will be established to port SELF:RemotePort. The default value is IPPORT_SMTP (25).

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
This method establishes a connection to the specified remote mail server at port nPort or SELF:RemotePort.
Examples
See the CSmtp:CheckReply() example.
See Also