downloading attachments in

0 votes
asked Jul 22, 2011 by ravi (120 points)
edited Oct 11, 2011

Can you plz tell me, how to download attachments in

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Jul 24, 2011 by Lukas Pokorny (128,250 points)
edited Jul 24, 2011

Step 1: Download a MailMessage object using IMAP or POP3 protocols. Check out the IMAP tutorial or POP3 tutorial for sample code.

Step 2: For each Attachment object in MailMessage's Attachments collection, call the Save method to save it to a file. Check out the ExtractAttachments sample or its description for sample code.

If anything is unclear, don't hesitate to ask again.