Solved

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

Posted on 2000-04-08
4
228 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you!
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now