outlook-addin

Event Handler not being added to new Mail Items

眉间皱痕 提交于 2019-12-31 04:32:12
问题 I'm trying to create a simple Outlook 2010 add-in that responds to new attachment events. The code below only works when I uncomment the MessageBox.Show line. But with it removed it appears not to add the event handler. What am I missing about the program flow that means that a modal message box affect the placement of event handlers? public partial class ThisAddIn { private void ThisAddIn_Startup(object sender, System.EventArgs e) { Application.Inspectors.NewInspector += Inspectors

1 MB response size limit with outlook web add-ins

Deadly 提交于 2019-12-31 03:51:06
问题 I'm using makeEwsRequestAsync to get the full MIME content of the email. But it looks like response size is capped at 1 MB, per the error message in the response: "ErrorMessage":"Response exceeds 1 MB size limit. Please modify your EWS request.” <GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"> <ItemShape> <t:BaseShape>IdOnly</t:BaseShape> <t:AdditionalProperties> <t:FieldURI FieldURI="item:MimeContent"/> </t:AdditionalProperties> </ItemShape> <ItemIds><t:ItemId

Outlook 2010 Add-In: How to customize “From/To/CC/Subject” pane?

白昼怎懂夜的黑 提交于 2019-12-31 02:04:21
问题 I'm currently working on an Outlook 2010 Add-In with C#. Is there any way to customize the "From/To/CC/Subject" pane in Outlook 2010? Specifically, I hope to implement the following functionality: Add a new field below the subject of an email Add two icons on the right of that area I need to do that both for email previews and when reading an email in a new window. See this ImageShack pic as an example. 回答1: You cannot customize this part of the Outlook user interface - as of my researches I

Outlook 2010 Add-In: How to customize “From/To/CC/Subject” pane?

醉酒当歌 提交于 2019-12-31 02:03:15
问题 I'm currently working on an Outlook 2010 Add-In with C#. Is there any way to customize the "From/To/CC/Subject" pane in Outlook 2010? Specifically, I hope to implement the following functionality: Add a new field below the subject of an email Add two icons on the right of that area I need to do that both for email previews and when reading an email in a new window. See this ImageShack pic as an example. 回答1: You cannot customize this part of the Outlook user interface - as of my researches I

nicely reading outlook mailitem properties

依然范特西╮ 提交于 2019-12-30 03:24:07
问题 I am writing a plugin for outlook 2007 and i would like to read a property of a MailItem. In particular i'd like to know all the content-types of my attachments. Now the way i do this now is something like this: Outlook.MailItem item = OutlookItem as Outlook.MailItem; Outlook.Attachments itt = item.Attachments; foreach (Outlook.Attachment t in item.Attachments) { textBox1.Text += t.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x370E001F"); } But I would much rather

Don't save embed image that contain into attachements (like signature image)

我与影子孤独终老i 提交于 2019-12-29 07:55:08
问题 I work on a VSTO in c#. When I click on button I save attachment in a folder. My problem is : when I have a rich email with an image in the signature, I have a element in my attachment. But I don't want save that image. Outlook (application) hide this attachment in the area attachment ! So why not me :-( My code is very simply : MailItem MailItemSelected = this.OutlookItem; foreach (Attachment a in MailItemSelected.Attachments) { a.SaveAsFile(path + a.FileName); } But I don't find a test for

VSTO - Is it possible to have both designer and XML ribbons?

萝らか妹 提交于 2019-12-29 06:19:08
问题 I'm working on an Outlook 2010 add-in that has multiple ribbons created with the Visual Studio 2010 ribbon designer. I've made an additional XML ribbon (I needed to override the default behavior of some built in ribbon buttons, which can't be done with the designer). Enabling the XML ribbon disables all the designer ribbons because I have to override CreateRibbonExtensibilityObject (ContactButtonOverrides is my XML ribbon): protected override Microsoft.Office.Core.IRibbonExtensibility

Block email sender

旧城冷巷雨未停 提交于 2019-12-27 03:56:06
问题 Is there anyway you can create a code, when you click a button (I've already created this) it will take the selected email and block the sender which will delete the email? 回答1: Outlook Object Model does not expose blocked/safe senders at all. If using Redemption is an option, it exposes RDOJunkEmailOptions object (returned from RDOSession. JunkEmailOptions , RDOAccount. JunkEmailOptions , RDOExchangeMailboxStore. JunkEmailOptions ), which allows to add blocked senders using

Outlook interop code throws “message has been changed” error the second time when the code tries to save a mail item

耗尽温柔 提交于 2019-12-25 11:55:12
问题 First of all, this problem only happens on a few client machines and I can not replicate it on any of my test machines. So I have the following test code in LINQPad: var application = new Application(); var session = application.Session; const string entryId = "arbitrary entry ID"; const string propertyName = "http://schemas.microsoft.com/mapi/string/{31A9B8DA-D4A0-4B96-87AE-01D6E9BCFCCE}/Test/0x0000001F"; // Save test property for the first time. var mail = (MailItem)session.GetItemFromID

Why are MailItems created in Sent Items folder shown in compose mode in Outlook 2013

走远了吗. 提交于 2019-12-25 09:14:16
问题 I have a Outlook 2013 addin that has a ItemSend Eventhandler that I can't get to work right. What it does is: Loops all recipients (to, cc, bcc) and creates a separate copy for each with only that email as recipient and sends them. Then deletes them from sent mail folder. This works fine. Creates one more copy, that has the original to, cc and bcc information. Uses the move-method to move it to the Sent items folder, because Save would put it in Outbox. It must not be actually sent, it should