Search code examples
c#outlookoutlook-addin

get the mail file size, type, name in c#


How to get the email attachment file size, name, type programmatically with visual studio 2010 and

c#.net and when the button clicked in th it send mail with above details.


Solution

  • Loop through the MailItem.Attachments collection and use Attachment.FileName and Attachment.Size properties.