从网站打开新Outlook,mailTo链接过长,*.eml文件密件抄送字段未加载 [英] open new Outlook from website, too long mailTo Link, *.eml file bcc field not loaded

查看:441
本文介绍了从网站打开新Outlook,mailTo链接过长,*.eml文件密件抄送字段未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Microsoft Outlook 2010打开*.eml文件,并且bcc字段出现问题.

I'm trying to open a *.eml file with Microsoft Outlook 2010 and got problems with the bcc field.

这是我的eml文件:

To: example@domain.com
Subject: Mail Subject
cc: cc@domain.com
bcc: bcc@domain.com
Content-Type: text/plain
MIME-Version: 1.0
X-Unsent: 1

Mail content

当我使用Outlook打开此eml文件时,除bcc以外的所有条目都可以正常工作. 如何使bcc字段起作用?

When I open this eml file with Outlook all entries work fine, except bcc. How can i bring the bcc field to work?

修改

我基本上希望网页上的mailto链接具有相同的行为.用户应单击一个链接,然后应打开默认的邮件程序(在使用该软件的办公室中为Outlook). mailto链接可以正常工作,直到链接长度不超过2000个字符为止.就我而言,我需要传递给Outlook的信息比2000个字符长得多,因此我试图生成一个*.eml文件,该文件无法正常工作.

I basicly want the same behavior of a mailto link on a webpage. The user should click on a link and the default mailprogram (which is Outlook in the office where the software is used) should open. mailto links work fine until the link is not longer than about 2000 characters. In my case, the informations that I need to pass to Outlook are much longer than 2000 characters, so I tried to generate an *.eml file which doesn't work as expected.

所以我需要什么

  • 类似于mailto链接的链接
  • 必须使用超过2000个字符
  • 必须在Google Chrome浏览器&中工作Outlook 2010
  • a link similar to a mailto link
  • must work with more than 2000 characters
  • must work in Google Chrome & Outlook 2010

我得到了什么:

  • PHP
  • 带有jQuery的JavaScript

推荐答案

我找到了解决给定问题的方法.

I found a solution for my given problem.

MailTo链接仍然太长,*.eml文件不起作用.但是可以生成一个* .vbs文件(Visual Basic脚本),该文件将打开一个新的Outlook电子邮件发送表单,其中包含我需要的所有字段以及一个非常长的正文(已测试超过50000个字符).这是此类* .vbs文件的示例代码:

MailTo links are still too long and *.eml files won't work. But it's possible to generate a *.vbs file (Visual Basic Script) which will open up a new Outlook E-Mail send form with all the fields I need and a very long Body (tested with over 50000 characters). Here is a sample code for such an *.vbs file:

'Create an Outlook application object 
Set objoutlookApp = CreateObject("Outlook.Application") 

'Create Message 
Set objmessage = objoutlookApp.CreateItem(olMailItem) 
objmessage.TO = "mail1@domain.com;mail2@example.de"
objmessage.CC = "cc1@x.com;cc2@y.de"
objmessage.BCC = "bcc@domain.com"
objmessage.Subject = "E-Mail Subject"
objmessage.Body = "Here comes some text, followed by a newLine" & vbNewLine _
& "and here is a second Line with some special characters like the paragraph: " & chr(167) & ", a german umlaut: " & chr(228) & " or some quotes: "". Hope this will help!"
objmessage.display

set objmessage = Nothing
set objoutlookApp = Nothing

wscript.quit

这篇关于从网站打开新Outlook,mailTo链接过长,*.eml文件密件抄送字段未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆