![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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). -- 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 "Rune Mathiassen" wrote in message ... 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 |
#3
|
|||
|
|||
![]()
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 "Ken Slovak - [MVP - Outlook]" wrote in message ... 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). -- 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 "Rune Mathiassen" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
save all email addresses | weareborg | Outlook - General Queries | 11 | May 21st 06 04:53 PM |
Find sent email | Bela Gocz | Outlook and VBA | 3 | April 27th 06 06:29 AM |
when I save an email, where does it save to? | networm | Outlook - General Queries | 5 | March 15th 06 03:06 PM |
auto scan email content for dates/times, generate calendar entry | cagphd | Outlook - Calandaring | 1 | February 25th 06 05:17 AM |
Pls help: need to find email.... | [email protected] | Outlook Express | 5 | February 21st 06 03:36 PM |