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: How will I know the attachement names in the received mail using POP3 Component.
karthiksp

From: West Palm Beach, FL USA
Posts: 60
Member Since: 08/04/05
posted January 31, 2007 2:07 PM

Hi All,

   I am using Powerbuilder using Pop3 component to read mails. It is working fine and able to retrieve the messages.

   One question I have is I want to check what type of attachements a particular mail has and based on that attachement, I need to download the file.

   Could some one help me how can I know what are all attachements in a particular message.

Thanks for any hint
Karthik
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted February 5, 2008 3:35 PM

Hello Karthik,

With regards to the query I would suggest you to check the parts collection to get the desired information. When any file is attached to a message, this causes the Content-Type in the main header to become multipart, identifying that there are more parts than the message text. These parts will be enumerated after the main header, separated by an automatically generated divider. Each of these parts may be encoded with a different encoding scheme.

I hope this helps.
Have a great day.

Regards,
Arjun
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX