Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Attachments folder
MOakley2

From: Columbia, SC USA
Posts: 11
Member Since: 06/21/13
posted May 4, 2016 5:10 PM

Whenever I make the following call:

imap.SelectedMailbox.Get(0, 1, ImapMessageInfo.Message);

the attachments get written to an Attachments folder such as C:\Windows\SysWOW64\Attachments or development debug\Attachments

Is there a way to discover Attachments folder at runtime, or define it? Looking for way to perform cleanup.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted May 4, 2016 5:24 PM

Hello,

The static Attachment.Directory property configures the directory attachments are decoded into, and defaults to an "Attachments" subfolder in the application's working directory.

The Dispose() methods (available on Imap, MailMessage, and Attachment (in descending order of scope)) will cleanup unmoved decoded attachments from disk.
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX