outlook-2010

Accessing User Defined Fields in Outlook

江枫思渺然 提交于 2019-12-08 02:20:24
问题 So, I have a custom email form/message like below and I want to access the "Doc Title:" field value to insert it into the body of the email. I currently have this code; Function Item_Send() Item.Body = Item.Body + UserProperties.Find("TextBox1").Text End Function And I've tried multiple variations of this, such as Item.UserProperties.Find(...).Value , Find(...).Value by itself, UserProperties.Find("TextBox1", false).Text , etc. Research; CodeProject MSDN Find Method Documentation Microsoft

Open Specific MailItem in Outlook from C#

戏子无情 提交于 2019-12-07 19:18:48
问题 I want to open a specific email in Outlook from my C# winforms application. At the moment I have got the following code: //...Get Folder & Entry ID for last Email in Sent Box Outlook.Application myApp = new Outlook.ApplicationClass(); Outlook.NameSpace mapiNameSpace = myApp.GetNamespace("MAPI"); Outlook.MAPIFolder mySentBox = mapiNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail); Outlook.MailItem myMail = ((Outlook.MailItem)mySentBox.Items[1]); string guid = myMail.EntryID

Trouble getting html email signature to display properly in Outlook

余生长醉 提交于 2019-12-07 05:25:27
问题 I have created myself a simple email signature in html, he's the code: <html> <!-- Company logo goes here --> <div id="far_left" style="width: 50px; height: 50px; float: left; margin-right: 10px;"> <img src="logo.png" /> </div> <!-- Name and occupation goes here --> <div id="top" style="height: 25px;"> <span style="font-family: Arial, Verdana, 'Sans Serif'; font-size: 22; color: #464646;"><strong>Dean Grobler</strong>, Programmer</span> </div> <!-- Website link and email adress goes here -->

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

How to make a responsive grid in Outlook 2007?

时光怂恿深爱的人放手 提交于 2019-12-06 15:08:43
I'm creating a 3x3 grid layout in an email, which I have done with tables. I have also made it mobile responsive so that when viewed on a mobile, the grid resizes to 2x2. This all works fine but for some reason on Outlook 2007 onwards it displays the grid so it shows them one under another. I know Outlook has its restrictions but does anybody know a way round this? I've been staring at my code for ages. Here's my code (sorry I can't put all my code on as its longer than 30000 characters) <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body

Open Specific MailItem in Outlook from C#

こ雲淡風輕ζ 提交于 2019-12-06 14:14:15
I want to open a specific email in Outlook from my C# winforms application. At the moment I have got the following code: //...Get Folder & Entry ID for last Email in Sent Box Outlook.Application myApp = new Outlook.ApplicationClass(); Outlook.NameSpace mapiNameSpace = myApp.GetNamespace("MAPI"); Outlook.MAPIFolder mySentBox = mapiNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail); Outlook.MailItem myMail = ((Outlook.MailItem)mySentBox.Items[1]); string guid = myMail.EntryID; string folderEntryID = mySentBox.EntryID; string folderStoreID = mySentBox.StoreID; string

How do I get the selected text from a WordEditor Object and change it's color?

落爺英雄遲暮 提交于 2019-12-06 12:55:26
I'm trying to use the WordEditor object to modify the color of the selected text (Outlook VBA) but i'm unable to find documentation or examples on how to do it. Any ideas? I don't want to use the HTML editor, i need a solution for WordEditor . I tried debuging the code and using OutlookSpy, but everytime i go into WordEditor.Content my outlook freezes and restarts :(. Using Outlook 2010 on Windows 7 OK - I found something that works. Ugly, but works: Sub EmphesizeSelectedText(color As Long) Dim msg As Outlook.MailItem Dim insp As Outlook.Inspector Set insp = Application.ActiveInspector If insp

How can I detect if an HTML email is being opened in Outlook 2007 or 2010?

余生长醉 提交于 2019-12-06 10:40:22
问题 I am currently trying to write a newsletter for the company I work for. The newsletter appears correctly in all major internet browsers (IE 5.55 to 9, Chrome, Firefox, Opera), but when anyone opens it in Outlook 2007 or 2010, all the fonts look "blown up". I am aware this issue is because of Outlook's way of rendering HTML like Word would, and if I manually "shrink" the fonts, they look good in Outlook but not in any other email software. My question is this. Is there a way to detect whether

Outlook access shared inbox sub-folder

こ雲淡風輕ζ 提交于 2019-12-06 09:15:45
问题 I have a strange issue on the below code I use for extracting Outlook email information into Excel. Sometimes the code works perfectly but other times I get the Run-Time Error '-2147221233 (8004010f)' . When I do get this error it is the line Set objFolder = objMailbox.Folders("Inbox").Folders("ARCHIVE") that has the issue. I am running the code on a shared inbox and I have the "ARCHIVE" folder as a sub-folder of the inbox. It is as if the code cannot find the folder even though it is there

How to get the CRM Entity Name from the Object Type Code of a RegardingID?

拟墨画扇 提交于 2019-12-06 07:20:53
So it seems that it is a fairly common question in CRM to try get the object type code when you have an entity name. But since I always have to do things the hard way, I have the reverse task: I have the object type code, and need to get the entity name. In general, the ultimate task is to take the the CRM regarding information on an email, and use it to query CRM for additional info. I can get the regardingID and the object type code easily. And for standard entities I can use a hardcoded lookup to get an entity name. But for custom entities, this won't work, as the object type code can be