Solved

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

Posted on 2000-04-08
4
231 Views
Last Modified: 2008-02-26
Hello.

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.

Question:

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?)


Max.
0
Comment
Question by:mulian
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:Neo_mvps
ID: 2696703
Try this to see if it works for you.

Set objSession = CreateObject("MAPI.Session")
objSession.Logon
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.)
0
 

Author Comment

by:mulian
ID: 2705226
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.
0
 
LVL 16

Accepted Solution

by:
Neo_mvps earned 150 total points
ID: 2706009
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.
0
 

Author Comment

by:mulian
ID: 2706689
Thank you!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
Find out what you should include to make the best professional email signature for your organization.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question