CSmtp.CheckReply Method | |
Check the response from a mail server for error codes.
Namespace:
VO
Assembly:
VOInternetClasses (in VOInternetClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD CheckReply() AS USUAL
public virtual Usual CheckReply()
Request Example
View SourceReturn 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:
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