outlook-2007

Access Outlook default folder

时光总嘲笑我的痴心妄想 提交于 2019-11-27 06:17:08
问题 I working on an Outlook VBA application and I need to access my inbox but I seem to be having some trouble. I am using the GetDefaultFoldder(olFolderInbox) method, however, I have several email addresses set up and none of them show up in my personal folder's inbox. So my question is, where is this default folder defined? How do I know which inbox is the default one? I know there is also the GetFolderFromID method, if I were to use this, how can I find a folders ID in order to point to it?

Debugging an Outlook 2007 script fired by a rule

自闭症网瘾萝莉.ら 提交于 2019-11-27 03:17:00
问题 I'm trying to debug an Outlook 2007 VBA script that's fired by a rule. I've set a breakpoint in the script but it doesn't get hit. The script is actually a Sub in the ThisOutlookSession object. When I run the rule on a specified folder nothing seems to happen. What am I doing wrong? Update: I've added a MsgBox "Processing: " & mailItem.Subject to the script and that pops up just fine when I run the rule. However I can't seem to get the script to stop on breakpoints. 回答1: I think you may not

background image on TD in Outlook 2007

ε祈祈猫儿з 提交于 2019-11-27 02:59:19
问题 I've been told using tables is the best way to send emails although it's been twice as difficult. I have setup the email in tables, set all of the cells which need backgrounds with the background="" property, as well as using CSS in <style> tags saying the same thing to cover my bases. The body background shows fine in outlook, but the TD backgrounds do not. I've tried also using but that doesn't work either. I've read that Outlook 2007 doesn't support background images and won't in the

VSTO Outlook Embed Image MailItem

守給你的承諾、 提交于 2019-11-27 02:27:16
问题 I need to embed an image as a part of the email, after the User Signature, not at the end of the email, becasue if i'm sending a reply of a large email, the embedded Image it's going to be at the bottom of the emails chain How do I embed an image as part of the email content (Not a link to an outside image)? How do I add this image after the user Signature? I'm work with VSTO, VS2008 Fwk3.5 and Outlook 2007 Here is my code: public partial class ThisAddIn { private void ThisAddIn_Startup

Background images not working in Outlook 2007 and later

拟墨画扇 提交于 2019-11-27 01:02:35
问题 I made an HTML Email Template that is working fine in most email readers, but the background images are not showing in Outlook 2007, 2010, and 2013. How can I solve the problem? Here's the HTML for the email: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> * { padding: 0px;

Regular Expression Rules in Outlook 2007?

假如想象 提交于 2019-11-27 00:13:29
问题 Is it possible to create rules in Outlook 2007 based on a regex string? I'm trying to add a filter for messages containing a string such as: 4000-10 , a four digit number followed by a dash and then a two digit number, which can be anything from 0000-00 to 9999-99 . I was using this as a regex: \b[0-9]{4}\-[0-9]{2}\b but the filter isn't working. I've tried a few other modifications as well with no luck. I wasn't able to find anything concrete online about whether Outlook even supports

Call outlook VBA from Excel

大兔子大兔子 提交于 2019-11-26 23:25:36
问题 I have a function in the outlook VBA that I want to call when a certain excel workbook is closed. Is there a way to do this with the BeforeClose event of excel? I know how to write functions for this event, but I am not sure how to link them to the current outlook session to get to the function. 回答1: If you wish to get hold of a reference to an instance of Outlook that is already running, you will need to use: Set myOutlookApp = GetObject(,"Outlook.Application") which will give you access to

Can I read an Outlook (2003/2007) PST file in C#?

こ雲淡風輕ζ 提交于 2019-11-26 18:11:00
Is it possible to read a .PST file using C#? I would like to do this as a standalone application, not as an Outlook addin (if that is possible). If have seen other SO questions similar to this mention MailNavigator but I am looking to do this programmatically in C#. I have looked at the Microsoft.Office.Interop.Outlook namespace but that appears to be just for Outlook addins. LibPST appears to be able to read PST files, but this is in C (sorry Joel, I didn't learn C before graduating ). Any help would be greatly appreciated, thanks! EDIT: Thank you all for the responses! I accepted Matthew

Outlook 2007 from C# - COM exception, TYPE_E_LIBNOTREGISTERED

纵饮孤独 提交于 2019-11-26 17:06:37
问题 I'm trying to make a program that would open new Outlook 2007 message. I've referenced from COM tab Microsoft Outlook 12.0 ObjectLibrary. These items showed up in references in VS: Microsoft.Office.Core Microsoft.Office.Inerop.Outlook Now I try to invoke following code: var _outlookInstance = new Microsoft.Office.Interop.Outlook.Application(); var _message = (OutlookApp.MailItem)_outlookInstance.CreateItem(OutlookApp.OlItemType.olMailItem); where OutlookApp==Microsoft.Office.Interop.Outlook