Click or drag to resize

CSmtp.CheckReply Method

X#
Check the response from a mail server for error codes.

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD CheckReply() AS USUAL
Request Example View Source

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
This method checks for a response string from a mail server for error codes and sets the properties, ReplyCode, ReplyString, and Error.
Examples
The following example checks the connection to Computer Associates mail server:
X#
 1FUNC SmtpTest()
 2LOCAL oSmtp AS CSMTP
 3oSmtp   := CSMTP{"ServerCheck", "", "", "Check "}
 4oSmtp:Timeout := 1000
 5oSmtp:Connect("mail2.cai.com")
 6oSmtp:CheckReply()
 7? oSmtp:ReplyString
 8? oSmtp:ReplyCode
 9? oSmtp:Error
10oSmtp:Disconnect()
See Also