• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

CDO: How to use the MAPI msg class / custom form


I am trying to develop a small workflow application with Microsoft Outlook 2k / MS Exchange 5.5 SP2.
I use a server-side script that, upon arrival of a new posting, replies to the sender.

This reply usually appears in the IPM.Note format.

In the Oranizational forms library, however, I've created a custom form - IPM.Note.MyCustomForm. The server-side script should send the message using my custom form.

I tried using the Message Object's Type property but failed.


How do I make this work - even on a computer that does not have the form in the personal forms library (the computer does have access to the organizational library and has to download it - but how?)

  • 2
  • 2
1 Solution
Try this to see if it works for you.

Set objSession = CreateObject("MAPI.Session")
Set objMessage = objSession.Outbox.Messages.Add type:="IPM.Note.MyCustomForm"

Note: Took into consideration that the machine is current logged onto the network and has access to the Organization Forms Library. (Form should be downloaded to machine automatically.)
mulianAuthor Commented:
Thank you Neo,

well, I realized that I made a spelling mistake!

Instead of using IPM.Post.MyCustomForm I've used IPM.Note.MyCustomForm - that is why of course the standard form was used.

But when I use the form with custom fields, are those custom fields installed on the user's machine, too?

Answer would be very much appreciated.
Yes.  Just keep in mind that each time you update the form you should increment the version number so Outlook will know when to pull a modified copy.
mulianAuthor Commented:
Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now