home | get Sue’s code | forums | share code | registration

More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

share code 09-Feb-2010 10:05

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

Code level: beginner    Code area: Basic Outlook Printer Friendly Version
Title: Set properties on outgoing messages
Description: Sometimes you might want to set a category or a follow-up flag or set an outgoing message so that it Outlook doesn't save a copy in the Sent Items folder. The Application.ItemSend event is used for this; it fires whenever you send an item. The code below suggests ways you might use this.
Date: 29-Apr-2003  23:38
Code level: beginner
Code area: Basic Outlook
Posted by: Sue Mosher
Body:
All 37comments
Page [ 1 2 3 4 Next >>  
  02-May-2003  23:16   
I am the Beginner of Outlook programming. I copy the code to the Script Editor. When the form runs, an error message(Expected ")" Line:1) popped up. I don't know how to fix and don't understand why use Private.

I found this function is so useful. However, I am turning around. Please teach me.
  02-May-2003  23:38   
Oh, I know what's wrong. I should put the code in Macro. Thanks.
  05-May-2003  04:05   
I love your book and it's fantantic. Although I follow the rules on Ch18.2 to convert above code to VBScript, I have problem.

Can you show above sample in VBScript? Please Please.
  07-May-2003  17:46   
Application_ItemSend is a VBA event handler. The above code is designed for use in the built-in ThisOutlookSession module in Outlook VBA, so that it runs against all outgoing items. It's not intended for use in a custom Outlook form.
  28-May-2003  19:15   
Sorry, Dorothy, I meant to also ask just what you're trying to do with your outgoing items. I bet there's a way to make a script for whatever that might be.
  10-Jul-2003  06:38   
is there a way to set/retrieve the sender name in Itemsend? All i get is an empty string for SenderName.
  17-Jul-2003  17:14   
You can set the SendOnBehalfOfName, but that only really does the trick in an Exchange environment where you have SendAs or SendOnBehalfOf permission for the other user.
  30-Jul-2003  12:19   
Is there a way to copy the outgoing messages into a folder of a different mailbox?
  08-Aug-2003  06:08   
Praveen, you would need to use a different event for that -- MAPIFolder.Items.ItemAdd where the folder is the sending user's Sent Items folder.
  16-Sep-2003  06:15   
How would you go about getting the MAPI properties of a message before it gets sent?
Page [ 1 2 3 4 Next >>  
Post your comment



name        email