View Single Post
  #2  
Old September 4th 06, 11:03 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to call Outlook "New Mail Mesage" Dialog via Outlook Object Model?

1. I am not sure I understand. Do you mean something like this
MailItem.Subject = "The Subject"
MailItem.Body = "This is the body"
MailItem.Display

2. See http://www.outlookcode.com/d/sec.htm

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

"papachina" wrote in message
...
I'm using Outlook Object Model in Visual C++. I tried _MailItemPtr, but
seems i have to fill in all information in the program.
What I wanna do is to let the program fill in partial information (like
Subject, Body, Attachment) automaticall first, then call up the "New Mail
Message" dialog (same one in Outlook 2003) so user can fill in the rest
(like Recipient email address). One way is that to write my own dialog,
but it will more convenient if I can just reuse the Outlook dialog.

Also is there any way I can disable dispalying of the virus warning dialog
saying "A program is trying to automatically send e-mail on your behalf"
and blah blah?

Thanks.




Ads