Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 22 February 2005 at 5:55am | IP Logged
|
|
|
DeleteMessage states in the documenttation you must be connected. However using pops demo 2 I have added the code below:
Private Sub CmdDelete_Click()
oMailer.DeleteMessage lngCurMsg
End Sub
Which still deletes the current message being viewed. How can this be when disconnect has already been called in the cmdGetMail_Click event?
However I do get a "[Error: Already connected]" after clicking on cmdGetMail_Click again (after CmdDelete).
Is there some missing documentation in .DeleteMessage that connects if not currently connected?
Andy
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 22 February 2005 at 8:48am | IP Logged
|
|
|
DeleteMessage can connect to mail server if not yet connected.
However, DeleteMessage requires a parameter which depends on number of messages in the mailbox. Since number of messages in the mailbox can be determined only after the connection has been already established, DeleteMessage is never called during unconnected state in real-world applications.
Regards,
Alex
|
Back to Top |
|
|