outlook-addin

Issue with SentOnBehalfOfName

放肆的年华 提交于 2019-12-07 09:56:30
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 error or exception but email come to Outlook with old sender. Can you please help me with that? UPDATED

Replace the Outlook 2010 Send-Button?

眉间皱痕 提交于 2019-12-07 08:37:13
问题 I'm looking for a solution for the following problem. Can anybody help me out? I need to replace Outlooks Send-button with a dropdown-button like the "Von" (From) button in my screenshot. FYI: The new Send-DropDown button will have three functions: 1. Outlooks default send function (the normal sendbutton) 2. Send & Archive Mail 3. Send & Archive Mail+Attachments Can anyone help me out? Is it possible to do a replacment like i want? if not - does anyone have an other solution for my problem?

Get Inboxes from Outlook

不打扰是莪最后的温柔 提交于 2019-12-07 05:54:17
问题 I configured two Exchange accounts in Outlook 2010, however I cant find out how to get to Inbox of the second account. Session.GetDefaultFolder() always return the first one. Even enumerating Session.Accounts, finding the right account and calling Session.Account(found one).Store.GetDefaultFolder() returns wrong Inbox (from the default exchange account, not the secondary). 回答1: Does this show you all the available Inboxes? Sub LoopThroughInboxes Dim ol As Outlook.Application Dim ns As Outlook

Creating version independent Outlook add-ins [closed]

北战南征 提交于 2019-12-07 03:40:31
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Looking for a library to create outlook add-in's for outlook 2010, 2007 and outlook 2003 Found this http://www.add-in-express.com/add-in-net/video.php which looks very good but also pricey since it's a general purpose library for creating addins for other office products as well Is there any other library for comparison and hopefully cheaper too ! google search is inadequate with a rather generic name such as

Retrieve Current Email Body In Outlook

我们两清 提交于 2019-12-07 00:19:45
问题 in my outlook addin I want to add a button on the Ribbon so when user click this button I want to retrieve the current selected email's body , I have this code but it retrieve only the first email from the inbox because the index is 1 : Microsoft.Office.Interop.Outlook.Application myApp = new Microsoft.Office.Interop.Outlook.Application(); Microsoft.Office.Interop.Outlook.NameSpace mapiNameSpace = myApp.GetNamespace("MAPI"); Microsoft.Office.Interop.Outlook.MAPIFolder myInbox = mapiNameSpace

Hooked events Outlook VSTO continuing job on main Thread

瘦欲@ 提交于 2019-12-06 17:01:01
问题 I have developed an Outlook VSTO addin. Some tasks should be made on a background thread. Typically, checking something in my local db or invoking a web request. After reading several posts, I dropped the idea of calling the Outlook Object Model (OOM) in a background thread. I have some wpf controls and I successfully managed to use the .NET 40 TPL to perform the async task and when completed to "finish" the job (i.e. accessing the UI or the OOM) in the Main VSTA Thread. To do so I use a

Tag Outlook MailItem with ID number before send without causing TNEF (RTF) send

本小妞迷上赌 提交于 2019-12-06 15:45:11
问题 I have an Outlook add-in which assigns a UserProperty to a MailItem before it is sent: Outlook.UserProperty prop = mail.UserProperties.Add("XXXX", Outlook.OlUserPropertyType.olText); prop.Value = "YYYY"; It is known (see Stop Outlook from converting HTML to RTF for example) that doing this causes the email to be sent using TNEF (ie RTF format, the dreaded winmail.dat). My question is, is it safe to simply un-set the TNEF property? The following code will do that: mail.PropertyAccessor

Outlook WebAddin is detected as contextual addin instead of ribbon addin

我的未来我决定 提交于 2019-12-06 15:34:20
问题 We have created Outlook Ribbon Webaddin. It is working as expected(ribbon Addin) and loading in top ribbon place. But for some customer, it is loading as contextual Addin. Manifest URL : https://www.backflipt.com/app/addin/Backflipt-Beta.xml Outlook diagnostics info : {"host" : "Outlook", "platform": "PC", "version": "15.0.0000.0000"} Is there any way outlook configuration affects manifest loading way? Check the below image(blurred for security reasons) : Green color section is the plugin

onSend REST API changes do not reflect in the UI

守給你的承諾、 提交于 2019-12-06 15:28:34
问题 We are using the onSend event to perform some REST API requests that may change and update recipients and the draft item body. However, those changes are not reflected in the UI and when the onSend event is completed while allowing the send event to continue, the draft item is sent without the changes (successfully) made through the REST API. Can this behaviour be confirmed ? and if so, is there a way to force the UI to update before completing the onSend event? We are trying to work around

How to search for the name of the UserProperty in Outlook.MailItems, not their value

大城市里の小女人 提交于 2019-12-06 14:56:18
BACKGROUND: Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false). string propertyValue = "true"; string filter = "http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/IsProcessed LIKE \'%" + propertyValue + "%\'"; I am using this filter string in advancedSearch link to doc PROBLEM STATEMENT: My usecase is to search if these mailItems have any UserProperty assigned where name of UserProperty = "IsProcessed". Is there any way to do so using similar DASL filter string? Thanks. No,