A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to call Outlook "New Mail Mesage" Dialog via Outlook Object Model?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 1st 06, 11:52 PM posted to microsoft.public.outlook.program_vba
papachina
external usenet poster
 
Posts: 4
Default How to call Outlook "New Mail Mesage" Dialog via Outlook Object Model?

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
  #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.




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Choose Contact" versus "Check Name" Dialog Box Jason Outlook - Using Contacts 5 July 12th 06 08:33 PM
"Operation failed. Object could not be found." Outlook 2003, HELP Bushie Outlook - General Queries 1 April 8th 06 01:45 PM
change a column name (i.e. "company" to "call back") debbjo Outlook - Using Contacts 2 March 29th 06 09:40 PM
Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Found" E RitaG Outlook and VBA 4 March 6th 06 02:11 PM
Error message "an object can't be found" when sending mail Vikes Outlook - Installation 7 February 21st 06 02:37 AM


All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.