CSmtp.connect Method | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual connect(
Usual cIP = default,
Usual nPort = default
)
Request Example
View SourceParameters
- 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