标签: outlook-2010

在Outlook中,css填充不起作用

我在电子邮件模板中有以下html.

我在MS Outlook和gmail中获得了不同的视图.

<tr>
    <td bgcolor="#7d9aaa" style="color: #fff; font-size:15px; font-family:Arial, Helvetica, sans-serif; padding: 12px 2px 12px 0px; ">
    <span style="font-weight: bold;padding-right:150px;padding-left: 35px;">Order Confirmation </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <span style="font-weight: bold;width:400px;"> Your Confirmation number is {{var order.increment_id}} </span></td>
</tr>
Run Code Online (Sandbox Code Playgroud)

在gmail中

在展望中

如何解决这个问题?

html css email outlook outlook-2010

46
推荐指数
7
解决办法
12万
查看次数

VSTO Outlook插件需要保存设置,最好的方法?

我正在编写VSTO Outlook添加,我需要保存插件从Web服务获取的一些设置.做这个的最好方式是什么.注册?VSTO插件是否可以完全访问这样做?也许包含设置的文件?

提前致谢.

c# vsto office-interop outlook-2010 c#-4.0

23
推荐指数
2
解决办法
2万
查看次数

如何在outlook 2010 html电子邮件中显示背景颜色?

我的问题与Microsoft Outlook 2010有关.实际上我想在Outlook 2010中发布我的HTML简报,但我面临的主要问题是样式问题它没有显示颜色以及所有在Outlook 2010中发布时事通讯.请帮助我如果您知道如何在Outlook中设置颜色和CSS样式.

html css outlook-2010

23
推荐指数
1
解决办法
5万
查看次数

如何让MS Outlook接受CSS样式显示:阻止?

我正在使用服务(MailChimp)撰写HTML电子邮件.MailChimp标记标题的方式是使用SPAN标记并为标记提供内联样式display:block.

MS Outlook 2010忽略此样式.我找不到任何解决方法.因此,标题换行,打破了所需的页面显示.

是的,我知道Outlook使用MS Word来显示HTML.

假设我无法干预并手动编辑标记.

如何让MS Outlook接受CSS样式display:block并将SPAN标记显示为块级元素?

css outlook outlook-2010

21
推荐指数
1
解决办法
5万
查看次数

接受请求后,Outlook日历将从收件箱中消失

一旦您接受或拒绝邀请,Outlook 2010和2010+版本似乎会从您的收件箱中删除会议请求电子邮件.

如何防止这些被删除并将其保存在我的收件箱中?

通常,会议邀请还包含有用的信息或稍后需要跟进的内容.

outlook outlook-2010 outlook-2013 outlook-2016

21
推荐指数
1
解决办法
4万
查看次数

Outlook 2010电子邮件模拟器/预览工具

我在Outlook 2010中遇到基于HTML的电子邮件的问题(我的客户说).我自己没有使用outlook 2010的副本进行测试,我不想继续向我的客户端发送测试.

有没有人知道一个免费工具,可以让我测试outlook 2010呈现的电子邮件的显示?

谢谢

html email outlook html-email outlook-2010

18
推荐指数
1
解决办法
3万
查看次数

在Windows 7中获取/创建Outlook应用程序

我正在尝试获取当前运行的Outlook版本或启动Outlook以防它未运行,但我在Windows 7中获取或创建Outlook应用程序对象时遇到一些问题.我认为它与在Vista和7中限制性的用户权限.我正在使用Outlook 2010.

编辑:仅当我已启动Outlook 2010实例时才会显示这些错误.如果Outlook未启动,则应用程序可以顺利运行(它可以自行启动Outlook实例).

如果有人可以告诉我如何正确获取Outlook应用程序版本,那将非常有用.

我正在运行的代码是一个长的try-catch块,它继续触发异常:


try
{
  // create an application instance of Outlook
  oApp = new Microsoft.Office.Interop.Outlook.Application();
}
catch(System.Exception ex)
{
  try
  {
     // get Outlook in another way
     oApp = Marshal.GetActiveObject("Outlook.Application") as Microsoft.Office.Interop.Outlook.Application;
  }
  catch (System.Exception ex2)
  {
     // try some other way to get the object
     oApp = Activator.CreateInstance(Type.GetTypeFromProgID("Outlook.Application")) as Microsoft.Office.Interop.Outlook.Application;
  }
}
Run Code Online (Sandbox Code Playgroud)

该应用程序抛出以下异常:

当我尝试创建一个新的Outlook应用程序实例时:

由于以下错误,检索具有CLSID {0006F03A-0000-0000-C000-000000000046}的组件的COM类工厂失败:80080005.

当我尝试获取Outlook应用程序实例时:

操作不可用(HRESULT异常:0x800401E3(MK_E_UNAVAILABLE))

当我尝试通过Activator创建实例时

由于以下错误,检索具有CLSID {0006F03A-0000-0000-C000-000000000046}的组件的COM类工厂失败:80080005.

谢谢!

c# outlook windows-7 outlook-2010

16
推荐指数
1
解决办法
2万
查看次数

在outlook 2010中打破html电子邮件中的长词

我正在接收最终用户输入并将其插入HTML电子邮件中.但是,如果最终用户输入长URL或非常长的单词,则会通过扩展列或div超出指定的宽度来破坏Outlook 2010中的HTML布局.

在Chrome,Firefox,IE7 +和Safari中,我可以使用style ="table-layout:fixed"来强制表格列为特定宽度.但Outlook 2010忽略了这一点,并且长字将表格宽度推出超出固定宽度.

使用Div,Chrome,Firefox,IE7 +和Safari,我可以使用style ="word-wrap:break-word; overflow:hidden; width:100px"来修复div宽度.但在Outlook 2010中,它将div推出超出固定宽度.

如何让outlook2010包含长字,并尊重固定宽度?

这是我的示例HTML:

<!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>
</head>
<body>
<table width="400" style="table-layout: fixed" border="1">
    <tr>
        <td width="100">
            yo
        </td>
        <td width="300">
            Don't move me
        </td>
    </tr>
</table>
<table width="400" style="table-layout: fixed" border="1">
    <tr>
        <td width="100" style="word-wrap: break-word; overflow: hidden; width: 100px" border="1">
            yoooooooooooooooooooooooooooooooooooooooooooooooooooooo
        </td>
        <td width="300">
            Ya moved me
        </td>
    </tr>
</table>
<table width="400" border="1">
    <tr>
        <td width="100">
            <div style="word-wrap: break-word; overflow: …
Run Code Online (Sandbox Code Playgroud)

html html-email outlook-2010

16
推荐指数
2
解决办法
2万
查看次数

通过Python读取Outlook事件

Outlook有一些需要的东西 - 比如显示多个月的视图

所以我决定尝试通过python拉出事件数据(然后找到一种方法来很好地显示它).谷歌正在给我毛孔结果,但stackoverflow以前在使用win32com和outlook方面非常有帮助.

我的目标如下

  • 阅读共享日历
  • 阅读事件信息,如开始,结束,主题,创作者等

我没有走远,但这就是我聚在一起的(来自这个网站的灵感)

import win32com.client, datetime
from dateutil.relativedelta import relativedelta

Outlook = win32com.client.Dispatch("Outlook.Application")
ns = Outlook.GetNamespace("MAPI")

appointments = namespace.GetDefaultFolder(9).Items 
# TODO: Need to figure out howto get the shared calendar instead Default [9] 
# (I have placed the shared folder into a separate folder - don't know if it matters)
# I would just like the user to select which calendar to execute on
appointments.Sort("[Start]")
appointments.IncludeRecurrences = "True"
begin = date.today().strftime("%m%d%Y")
end = …
Run Code Online (Sandbox Code Playgroud)

python win32com outlook-2010 python-2.7

16
推荐指数
1
解决办法
2万
查看次数

如果Outlook已打开,则只能通过Outlook发送电子邮件

我想用所描述的通过Outlook发送电子邮件这里.只要我已经打开Outlook,它就可以正常工作.因此,例如,如果Outlook被最小化并且我执行我的代码,那么我可以发送电子邮件就好了.但如果Outlook关闭,那么我得到一个例外:

{System.Runtime.InteropServices.COMException (0x80004004): Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))
   at Microsoft.Office.Interop.Outlook._MailItem.get_Recipients()
   at OutlookExample.Form1.btnSendEmail_Click(Object sender, EventArgs e) in C:\Users\abc\Documents\Visual Studio 2008\Projects\OutlookExample\OutlookExample\Form1.cs:line 28}
Run Code Online (Sandbox Code Playgroud)

这是代码:

using Outlook = Microsoft.Office.Interop.Outlook;

...

private void btnSendEmail_Click(object sender, EventArgs e)
{
    try
    {
        Outlook.Application oApp = new Outlook.Application();
        Outlook.MailItem oMsg = Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
            oMsg.HTMLBody = "Hello, here is your message!";
            oMsg.Subject = "This is a test message";
            Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;
            Outlook.Recipient oRecip = (Outlook.Recipient)oRecips.Add("rhr@sonlinc.dk");
            oRecip.Resolve();
            oMsg.Send();
            oRecip = null;
            oRecips = null;
            oMsg = …
Run Code Online (Sandbox Code Playgroud)

c# outlook-2010

14
推荐指数
2
解决办法
2万
查看次数