| 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 >> ] | ||
|
|
Dorothy
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. |
|
|
|
Dorothy
02-May-2003 23:38
Oh, I know what's wrong. I should put the code in Macro. Thanks. |
|
|
|
Dorothy
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. |
|
|
|
Sue Mosher
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. |
|
|
|
Sue Mosher
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. |
|
|
|
simmy
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. |
|
|
|
Sue Mosher
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. |
|
|
|
Praveen
30-Jul-2003 12:19
Is there a way to copy the outgoing messages into a folder of a different mailbox? |
|
|
|
Sue Mosher
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. |
|
|
|
Pat Ramadass
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 |
