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: Removing Attachments
mrwise

From: New Ulm, MN USA
Posts: 7
Member Since: 06/07/04
posted October 12, 2007 4:41 PM

Ok I must be missing something here. I need to remove attachments as I am iterating thru my recordset it keeps adding attachments. Pretty soon I have 12 attachments and so on. Please tell me there is a way to clear the collection.

Thank you in advance.

Mike
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted October 15, 2007 1:05 PM

Hello Mike,

With regards to the query I would like to inform you that the attachments are stored in Part objects and are managed by the Parts collection. Therefore you may use the Remove method of the Parts objects to clear the attachments.

Please refer the help file for more information on the same.

I hope this helps.

Regards,
Arjun
mrwise

From: New Ulm, MN USA
Posts: 7
Member Since: 06/07/04
posted October 15, 2007 2:41 PM

Can you elaborate on this at all? The help file did not tell me much. Is there an example of removing an attachment? I am trying to loop thru a recordset of customers and this thing is emailing me way more than it should be! Am I able to clear the whole message object so I can start fresh with a new one every time thru?

Thanks again,

Mike
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted October 15, 2007 3:32 PM

Hello Mike,

With regards to the query you may set the Content property of the Message object to an empty string as shown below:

Message.Content=""

I hope this helps.

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