#

You can handle the Send event of the MeetingItem class which is fired when the user selects the Send action for an item, or when the Send method is called for the item. The boolean Cancel parameter by default is set to False when the event occurs. If the event procedure sets this argument to True. the send operation is not completed and the inspector is left open.

The How To: Create and send an Outlook message programmatically article explains the required steps for creating and sending emails in Outlook programmatically.

Monday, June 19, 2017 8:59 PM

I get that of course (I’m a c# developer) but I’m stuck using VBS and the only routine I can find is using View Code then selecting Script in the menu and Event Handlers. I can add in the Function Item_Send() but I can’t seem to get an email to generate from the event using VBS.

Monday, June 19, 2017 9:26 PM

The event handler should look like the following one:

Don’t miss the Cancel parameter for the Send event.

Monday, June 19, 2017 9:47 PM

Hi JstersdKen Blanchard,

What do you mean sending an email to the IS Department? Do you want to add a recipient or create a new email? I have create a simple code for adding a recipient. For creating a new email, you could refer to MailItem Object(Outlook). Here is the code.

Tuesday, June 20, 2017 9:01 AM

Thank you for the code but it’s still frustrating because no matter what I put in the View Code area, nothing happens. If I put a MsgBox( hello ) in the Item_Send() Function, it doesn’t even pop up the message box. As well, the Item_Send doesn’t work at all; it just sends the meeting request anyway.

Tuesday, June 20, 2017 7:34 PM

Hi Jstersd Ken Blanchard,

Do you mean Item_Sent event could not been triggered? What’s your version of outlook? I opened a new Meeting Inspector and used Design this Form, then I selected Send event from Script- Event Handler in Script Editor. The event triggered when I run this form and click Send button. If possible, could you tell me detail steps about how you designed the form? I suggest you try to repair your outlook or do the same design on another PC. Besides, I also suggest you change another version of outlook for testing.

Wednesday, June 21, 2017 9:40 AM

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

Would you like to participate?

Help us improve MSDN.

Visit our UserVoice Page to submit and vote on ideas!

Dev centers

Learning resources

Community

Support

Programs


Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation