RemoveAll Method

Removes all the attachments from the collection.

This method can be used, for example, to clear list of attachments in the existing message.

Parameters: None 
Return value None  

Usage example:

Dim Mailer, Msg, Attach
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "", 110, "MyName", "MyPassword"
If Mailer.Connected Then
  If Mailer.MessageCount > 0 Then
    Set Msg = Mailer.RetrieveSingleMessage(1)
    If Not Msg Is Nothing Then
      ' Remove all attachments from the message
    End If
  End If
End If

See Also:

Remove Method

Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.