P
PromisedOyster
In my Outlook.Attachment collection I want to be able to distinguish
between real attachments as opposed to images that have been embedded
in the message body. However, in the attachment collection of objects,
I am not sure how I can do this as they are all just treated as
attachments and there is no distinguishing feature that I acn see to
tell them apart. File type will not suffice I dont think?
Outlook.MailItem mi = (get MSG file from database);
// Iterate through the attachments
foreach (Outlook.Attachment att in mi.Attachments)
{
// I only want to save real attachments, eg if (att.RealAttachment)
att.SaveAsFile(attFile);
}
between real attachments as opposed to images that have been embedded
in the message body. However, in the attachment collection of objects,
I am not sure how I can do this as they are all just treated as
attachments and there is no distinguishing feature that I acn see to
tell them apart. File type will not suffice I dont think?
Outlook.MailItem mi = (get MSG file from database);
// Iterate through the attachments
foreach (Outlook.Attachment att in mi.Attachments)
{
// I only want to save real attachments, eg if (att.RealAttachment)
att.SaveAsFile(attFile);
}