outlook

Is it possible to write an outlook add-in that modifies the color of the user interface?

China☆狼群 提交于 2020-01-06 06:56:08
问题 I'd like to write an outlook add-in that changes the color of the Outlook window when the user opens an e-mail that comes from a sender external to the company. Can someone tell how to change the color of the outlook window? Also, will I need to use MAPI? 回答1: As far as you're concerned, it is not possible. Since 2007, the color of the Outlook UI is defined by the user's color preference (Blue, Silver, or Black, or in 2013: White, Grey, Dark Grey). There is no API provided to allow add-ins to

Count Emails In Inbox Every Hour And Save To text file

醉酒当歌 提交于 2020-01-06 06:43:08
问题 I'm trying to write some VBA in Outlook to count emails in the inbox folder (unread and read) every hour and to dump something like the below to a text file each time that happens: 28/02/2018 01:00 - 1,320 I've seen various code snippets, but I'm not sure how to achieve this. Could someone help please? 回答1: Should be simple to do that- Example Option Explicit Public Sub example() Dim Items As Outlook.Items Set Items = Application.Session.GetDefaultFolder( _ olFolderInbox).Items Debug.Print

Invalid Named Property

你说的曾经没有我的故事 提交于 2020-01-06 05:56:48
问题 We call the microsoft exchange to set the extended property which in our case is an unique guid microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: An internal server error occurred. The operation failed., Invalid named property Its been working great until now when some of our users are facing the above issue .... val uId = getUniqueId(); val emailExtendedPropDef = new ExtendedPropertyDefinition(uId,"uniqueId", MapiPropertyType.String) try { email

outlook and programming with C#

◇◆丶佛笑我妖孽 提交于 2020-01-06 05:27:52
问题 I wish to use the my Microsoft Outlook Task list in my C# application. Do you have any idea if that is possible? Can you give me a starting point or some tips for this task? many thanks! ps: btw, now I'm using Microsoft office 2010 beta. 回答1: Not for Office 2010, but maybe this helps: Outlook Integration in C# 回答2: You can try to use the Outlook Redemption library. Look at the RDOTaskItem class. 来源: https://stackoverflow.com/questions/1721523/outlook-and-programming-with-c-sharp

Get sub messages from Outlook .msg files

痴心易碎 提交于 2020-01-06 05:26:10
问题 I need to parse a few .msg files which have trail mails. Is there any way to get the sub messages and identify the initiated and the responded emails. I do not want to use any third party tools. I am allowed to use the Outlook interop. Below is the code that I have used to read the msg file.I am able to get the Body ,HTMLBody and other details.But I actually need all the trailing messages. outlook._Application app = null; outlook.MailItem item = null; outlook.NameSpace session = null; try {

Get sub messages from Outlook .msg files

风流意气都作罢 提交于 2020-01-06 05:26:03
问题 I need to parse a few .msg files which have trail mails. Is there any way to get the sub messages and identify the initiated and the responded emails. I do not want to use any third party tools. I am allowed to use the Outlook interop. Below is the code that I have used to read the msg file.I am able to get the Body ,HTMLBody and other details.But I actually need all the trailing messages. outlook._Application app = null; outlook.MailItem item = null; outlook.NameSpace session = null; try {

Edit an open email from excel

随声附和 提交于 2020-01-06 04:50:27
问题 Edit: Thank you everyone. All the suggestions probably work. I just finally realized, there's a security option enabled by my employer to prevent this type of action. Unfortunately, I can't edit emails, only create them. I'm trying to figure out how to modify an open email from excel. I have an email template that excel will replace certain strings with values from a worksheet in my workbook. I've been researching activeinspector , but I'm still unsure how cross programming works between

How to set/access outlook DoNotForward property in Microsoft exchange service

给你一囗甜甜゛ 提交于 2020-01-06 03:45:31
问题 Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("abc", "xyz", "bbb"); service.AutodiscoverUrl("xyz@abc.com",

How to set/access outlook DoNotForward property in Microsoft exchange service

拜拜、爱过 提交于 2020-01-06 03:45:25
问题 Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("abc", "xyz", "bbb"); service.AutodiscoverUrl("xyz@abc.com",

Div width incorrect in Office Outlook Client

若如初见. 提交于 2020-01-06 02:40:10
问题 I am trying to send an email with html content but I am observing displaying issues. The following does not get displayed properly in width by Microsoft Office Outlook, any hint? <div style="width: 650px; border: 1px solid blue">hello</div> 回答1: use tables, and on <td> use width="" propery and also style="width:" ... for some clients are reading the width property and others reads the style property 回答2: You must reconsider to change the email template to be tables within table and with