Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

E-MAPI with IPM.Note.SMIME.MultipartSigned And Attachment

69 views
Skip to first unread message

NeoS

unread,
Oct 20, 2009, 3:41:01 AM10/20/09
to

trying to send mail by E-MAPI with digitally signing
sending mail with attachments by EMAPI with outlook is OK.

Howeverm when setting
PR_MESSAGE_CLASS
to
IPM.Note.SMIME.MultipartSigned

the mailitem in the Outbox will have
"An error occurred in the underlying security system"

Sending the mail out is OK, but the after received, NO original file
attachments at all

trying to do the same by OutlookSpy,
it seems causing the same thing.

However, clicking the "Digitally Sign message" button, it works FINE.
Anything extra to do for sening mail signed with attachments ????


BTW, using OutlookSpy to view the AttachmentTable,
when setting PR_MESSAGE_CLASS only,
the attachment table add smime.p7m in addition to the original attachments.

when clicking the "Digitally Sign message" button and send,
the attachment table will HAVE only smime.p7m

???

Thanks for ANY help!!

Dmitry Streblechenko

unread,
Oct 20, 2009, 1:29:48 PM10/20/09
to
Do you actually create the p7m attachmen or simply set the message class?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"NeoS" <Ne...@discussions.microsoft.com> wrote in message
news:06AE1E8B-7B37-449F...@microsoft.com...

NeoS

unread,
Oct 20, 2009, 10:27:24 PM10/20/09
to
On Oct 21, 1:29 am, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> Do you actually create the p7m attachmen or simply set the message class?
>
> --

I do NOT create p7m myself, just set the PR_MESSAGE_CLASS and submit
to let outlook do itself.

In addition to coding, i tries manually by Outlook spy
1. create an email without "digitally sign"
2. add an ordinary file attachment (or more) like .doc or so
3. click send (submit)
4. In the Outbox, open it and use Outlook Spy to edit the
PR_MESSAGE_CLASS
to change it to "IPM.Note.SMIME.MultipartSigned"
5. click Send (submit)
6. Send it out really

In Step 5, if using Outlook Spy to view its AttachmentTable
It has only the original files no .p7m;
(if done by coding, outlook generates an extra .p7m when add
attachments after setting IPM.Note.SMIME.MultipartSigned)

After step 6, receiving the email ok. However, NO file attachments
(view by Outlook Spy, no entries in Attachment table)
The email itself shows signature verified
However, we also cannot open the item in SentBox.
It shows "An error occurred in the underlying security system"

Anyway, no matter by code or by Outlook Spy,

It always shows "An error occurred in the underlying security system"
in the SendItem.
And NO original attachments in the received email.

THANKS for the help!!

NeoS

unread,
Oct 26, 2009, 5:48:34 AM10/26/09
to
Do I need to create .p7m myself,
what i want to is to simulate the function of clicking the "Digitally
Sign Message" button?
How to do this by EMAPI or on MailItem??

Dmitry Streblechenko

unread,
Oct 26, 2009, 1:29:47 PM10/26/09
to
I never actually tried to do anthing useful with it, but I remember that
setting the message class worked for me back in the Outlook 2003 timeframe.
Other than that, I don't know, sorry.

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

"NeoS" <neos...@gmail.com> wrote in message
news:264d9d93-c3c2-4b2b...@w37g2000prg.googlegroups.com...

NeoS

unread,
Oct 28, 2009, 4:51:52 AM10/28/09
to
On Oct 27, 1:29 am, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> I never actually tried to do anthing useful with it, but I remember that
> setting the message class worked for me back in the Outlook 2003 timeframe.
> Other than that, I don't know, sorry.
>
> --
> Dmitry Streblechenko (MVP)http://www.dimastr.com/

> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool

FYI:
I tested with Outlook 2003 with SP3.
Directly setting PR_MESSAGE_CLASS IPM.Note.SMIME.MultipartSigned
does not work for mail with attachments.
Also even for a simple mail item, the itemsent is OK.
However, clicking the mailitem in the SentBox is also showing
"An error occurred in the underlying security system".

0 new messages