|
Summary
Contains the most recent reply from the IMAP server.
Description
The ImapReply property is used to retrieve the last response that was sent by the IMAP server. This property can only be accessed while a session is established. This property will contain
the exact response from the server for the last command that was executed by the IMAP server.
If the IMAP server fails to execute a command then the ImapReply property can be used to retrieve the exact error message sent by the host, which describes the reason why the action failed. For
example if the application tried to select a mailbox, test1, that does not exist then the Select method will return ERR_IMAP_FAILURE and the Reply property would contain "a016 NO SELECT failed: Can't
open mailbox test1: no such mailbox".
This property can only be read at run time while a connection is established. There is no default value for this property.
Example
Result = Imap.Select ("imapbox1") If (Result = ERR_IMAP_FAILURE) Then MsgBox Imap.ImapReply, 64, "Sample Program" Exit Sub
End If
|