outlook-addin

Issue with SentOnBehalfOfName

戏子无情 提交于 2019-12-01 12:03:50
问题 i'm stack with Outlook issue where i want to change Email Sender . I want to send all emails from Outlook with one sender. When i change sender from Outlook it works fine but when i change it from Outlook plugin it's not work. I'm using following code: private void adxOutlookEvents_ItemSend(object sender, ADXOlItemSendEventArgs e) { if (e.Item is MailItem) { MailItem mail = e.Item as MailItem; mail.SentOnBehalfOfName = "UserName"; mail.Save(); return; } } But nothing happens. I don't see any

Get Smtp email from ContactInfo stored in Exchange

丶灬走出姿态 提交于 2019-12-01 11:24:54
I am using VSTO for my Outlook add-in. Currently I am processing email addresses from all Outlook contacts. There is no problem for instances of ContactInfo if EmailAddress1Type is "SMTP". But how to get email address for Exchange contact (Email1AddressType = "EX")? Redemption library is not solution for me as it is expensive just to solve this one problem. Thank you in advance, Dusan SamFlushing Here is the MSDN reference link and corresponding sample code: private const string Email1EntryIdPropertyAccessor = "http://schemas.microsoft.com/mapi/id/{00062004-0000-0000-C000-000000000046}

Outlook Add-in not opening the default browser when clicking on link inside the addin

南楼画角 提交于 2019-12-01 11:21:49
问题 Background We are having users complain about links ( <a href="..."> ) from our Outlook addin not opening in their default browser. Some see that Google Chrome (default) is opening, which is the intended behavior. But some see that IE is opening regardless of what the default browser is. I suspect this may have something to do with the version of Outlook - but I haven't been able to pinpoint how and what. Maybe it has got something to do with the IE version on the computer since the addin

In an Outlook addin, how to check whether we are in compose mode or read mode?

為{幸葍}努か 提交于 2019-12-01 10:30:28
I'm creating an outlook add-in and use the OfficeJS API in React app. In there I want to load a specific set of features for the compose mode and another set of features for the read mode. So my question is, how to see in which mode I'm currently on? In the manifest.xml file you should have different ExtensionPoint for compose and read view as follow ... <ExtensionPoint xsi:type="MessageReadCommandSurface"> </ExtensionPoint> <ExtensionPoint xsi:type="MessageComposeCommandSurface"> </ExtensionPoint> Each of this sections have to have Action tag with ExecuteFunction or ShowTaskpane type. If you

Schema name for the message date property

岁酱吖の 提交于 2019-12-01 10:27:12
I'm trying to read and write the message date (sent/received) through the PropertyAccessor but can't figure out what the schema name for that property is and am not even sure if I'm passing the schema argument correctly. What's the correct schema name? How to correctly pass the arguments for GetProperty() and SetProperty() ? Is there a list of available names for each property somewhere? Is there any way to get/set a property without schemas but simply by using property name? object prop = item.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x10130102"); // I know

In an Outlook addin, how to check whether we are in compose mode or read mode?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 09:30:29
问题 I'm creating an outlook add-in and use the OfficeJS API in React app. In there I want to load a specific set of features for the compose mode and another set of features for the read mode. So my question is, how to see in which mode I'm currently on? 回答1: In the manifest.xml file you should have different ExtensionPoint for compose and read view as follow ... <ExtensionPoint xsi:type="MessageReadCommandSurface"> </ExtensionPoint> <ExtensionPoint xsi:type="MessageComposeCommandSurface"> <

Get Smtp email from ContactInfo stored in Exchange

隐身守侯 提交于 2019-12-01 08:54:32
问题 I am using VSTO for my Outlook add-in. Currently I am processing email addresses from all Outlook contacts. There is no problem for instances of ContactInfo if EmailAddress1Type is "SMTP". But how to get email address for Exchange contact (Email1AddressType = "EX")? Redemption library is not solution for me as it is expensive just to solve this one problem. Thank you in advance, Dusan 回答1: Here is the MSDN reference link and corresponding sample code: private const string

Schema name for the message date property

守給你的承諾、 提交于 2019-12-01 07:28:24
问题 I'm trying to read and write the message date (sent/received) through the PropertyAccessor but can't figure out what the schema name for that property is and am not even sure if I'm passing the schema argument correctly. What's the correct schema name? How to correctly pass the arguments for GetProperty() and SetProperty() ? Is there a list of available names for each property somewhere? Is there any way to get/set a property without schemas but simply by using property name? object prop =

How to programmatically set a custom icon on an Outlook search folder? (i.e. Outlook Folder SetCustomIcon)

江枫思渺然 提交于 2019-12-01 06:34:51
问题 I am attempting to use the Folder.SetCustomIcon() method to place a custom icon on a saved search folder I programmatically created. The SetCustomIcon() documentation is very sparse but can be found here for reference. Also, the object it expects is here and again the examples are very sparse. Would anybody know how to set the custom icon for a folder? The following is the code I have thus far: searchFolders = inboxFolder.Store.GetSearchFolders(); foreach (Outlook.Folder folder in

Send POST AJAX request from Office Add-In

馋奶兔 提交于 2019-12-01 06:13:48
I'm trying to send POST Ajax request for third party service from my Outlook Add-in, but no matter what I tried I receiving Error: Access is denied , and status 0 (request never hit the server). Assuming we are running IE9 or 8 behind the outlook I tried old school hacks like https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest . $.ajax({ url: endpoint, data: JSON.stringify({'1':'2'}), // headers: {'X-Requested-With': 'XMLHttpRequest'}, contentType: 'text/plain', type: 'POST', dataType: 'json', error: function(xhr, status, error) { // error } }).done(function(data) { // done });