Difference between Regular Attachments and Signature Attachments

A

Andrew

Hello folks,

I have an Outlook add-in Developed in Visual Studio 2008, written in VB.NET
for Outlook 2003 and 2007. A small part of its functionality is to post
emails from Outlook to a webform which currently works well in both versions.
We've however come across an issue with the attachments.

Currently, when the click the custom button to post the email. I save all
the attachments to a file and after the message is sent, I attempt the send
the attachments also. The issue is, signatures with images are being stored
as attachments also. Is there anyway to distinguish between the two types of
attachments?

Regards,
 
D

Dmitry Streblechenko

Do you need to strip out all the image attachments or only those used in
signatures (there is really no difference between the two)?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
A

Andrew

Hey,

Well, we don't want to upload any signature images. So I would like to know
if there's a way to detect them so that, they can be excluded from the
attachment upload.

Thanks,
 
D

Dmitry Streblechenko

No, an image is an image. The only difference is how it was added to a
message.
You can look at the HTML body and see if an image is within a _MailAutoSig
span, but that is far from being reliable.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top