Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2006

Tip: Looking for answers? Try searching our database.

Generate email, let user alter, find email again and save ...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rune Mathiassen - 30 May 2006 08:36 GMT
I am developing a program that should do the following:

1. Generate an email with subject, sender and body.
2. Send the email to Outlook and let the user alter whatever he/she wishes.
3. The tricky part – when the user presses send my program should grab the
altered email and save in on the disk.

The first two steps I have figured out, but the last step gives me trouble!
I thought I could use the EntryID but somehow Outlook changes the EntryID
when the email is send? How do I find the email again? Is there perhaps a
variable on the email item I can assign a unique ID of my own?

Hope someone can help me out – a Delphi example would be GOLD - but I think
I can convert VBA code to Delphi if not :)

Thanks in advance.

- Rune
Ken Slovak - [MVP - Outlook] - 30 May 2006 14:14 GMT
You can trap the Send event on the opened item if it is opened using an
event handler for ActiveInspector.CurrentItem.Send.

You can trap the ItemAdd event on the Items collection of the Sent Items
folder. See http://www.outlookcode.com/d/code/zaphtml.htm#cw for a VBA/VB
example of an ItemAdd handler for the Inbox.

You can add a user property (Item.UserProperties.Add).

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

>I am developing a program that should do the following:
>
[quoted text clipped - 17 lines]
>
> - Rune
Dmitry Streblechenko - 30 May 2006 22:30 GMT
Or you can use the Application.ItemSend event if you don't need the sender
related properties.

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

> You can trap the Send event on the opened item if it is opened using an
> event handler for ActiveInspector.CurrentItem.Send.
[quoted text clipped - 27 lines]
>>
>> - Rune
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.