从网站打开新Outlook,mailTo链接过长,*.eml文件密件抄送字段未加载 [英] open new Outlook from website, too long mailTo Link, *.eml file bcc field not loaded
问题描述
我正在尝试使用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屋!