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

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 30th 06, 09:36 AM posted to microsoft.public.outlook.program_vba
Rune Mathiassen
external usenet poster
 
Posts: 1
Default Generate email, let user alter, find email again and save ...

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  
Old May 30th 06, 03:14 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Generate email, let user alter, find email again and save ...

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  
Old May 30th 06, 11:30 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Generate email, let user alter, find email again and save ...

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


All times are GMT +1. The time now is 11:41 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.