Hi vladang,
to save the attachment to a given folder you can use the method Attachment.SaveFile(string folderPath):
I recommend you taking a look at the sample application, it has sample code for all major tasks.
Best regards,
Pavel Azanov
to save the attachment to a given folder you can use the method Attachment.SaveFile(string folderPath):
foreach (var attachment in m.Attachments)
{
attachment.SaveFile(@"C:\FolderWithAttachments\");
}
Another options is accessing the property Attachment.FileData and write the byte array directly to disk.I recommend you taking a look at the sample application, it has sample code for all major tasks.
Best regards,
Pavel Azanov