Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: POP Attachment Filenames
THW68
thw68@gmx.de

From: Neckarhausen, Germany
Posts: 3
Member Since: 03/27/03
posted August 31, 2003 6:32 PM

Hi

How can i get all attachment filenames?

Example:

Pop1.Login strPOP3Server, strAccount, strPassword
  If Pop1.Count > 0 Then
    Pop1.AttachmentDirectory = strAttachDir & strPathName
    Pop1.AttachmentOverwrite = True
    Pop1.Get
    Pop1.Delete
  End If
  ' Logout
  Pop1.Logout
  
  If Pop1.Messages.Count > 0 Then
    For lngCounter = 1 To Pop1.Messages.Count
      Set msg = Pop1.Messages.Item(lngCounter)
' Save the attachment(s)
' How can i get the FIlename of attachment?
      msg.AttachmentDirectory = strAttachDir
      msg.AttachmentOverwrite = False
    Next
   End If

Can anyone help me?

THW68
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 1, 2003 7:16 PM

The filename comes from the part. After you get the entire message, check each part in the message to see if it has a filename.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX