invoke send?

Add-in Express™ Support Service
That's what is more important than anything else

invoke send?
 
Byung Kun Kim




Posts: 48
Joined: 2011-12-15
In outlook region form, how to invoke outlook's mail send? (equivalent to click send button)

What do I get start from?
Posted 28 Nov, 2016 09:10:21 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Byung,

- Get the Inspector object showing your form: get ADXOlForm.InspectorObj and cast it to Outlook.Inspector.
- Get the item shown in the inspector: get Inspector.CurrentItem and cast it to Outlook._MailItem (or Outlook.MailItem).
- Call Outlook._MailItem.Send() or Outlook.MailItem.Send().

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Nov, 2016 09:18:26 Top
Byung Kun Kim




Posts: 48
Joined: 2011-12-15
I got it. Thank you,

I always have wondered which one is better _MailItem vs MailItem. just the same?
Posted 28 Nov, 2016 10:34:14 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Byung,

You can regard a class prefixed with "_" as an eventless version of the "full" class: "MailItem" = "_MailItem" + {events}.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Nov, 2016 03:24:34 Top