Open new Outlook from the website, MailTo Link is too long, * .eml Bcc file is not loaded

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

Here is my eml file:

 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 

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

Edit

I really want the same mailto link behavior on a web page. The user should click on the link, and the default email program (which is Outlook in the office where the software is used) should open. mailto links work fine until the link is more than about 2000 characters. In my case, the information I need to transfer to Outlook is much longer than 2000 characters, so I tried to generate a *.eml that did not work properly.

So what I need:

  • link similar to mailto link
  • must work with more than 2000 characters.
  • should work in Google Chrome and Outlook 2010

What I got:

  • Php
  • JavaScript with jQuery
+7
javascript jquery php outlook-2010 eml
source share
3 answers

I found a solution for this problem.

MailTo links are still too long, and * .eml files will not work. But it’s possible to create a * .vbs file (Visual Basic Script) that will open a new Outlook email sending form with all the fields I need and a very long body (with more than 50,000 characters). Here is a sample code for such a * .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 
+2
source share

For your editing, you can use the forms as follows:

 <form name="mailform" action="mailto: youremail@domain.com "> <input type="hidden" name="bcc" value=" youremailBCC@domain.com "> <input type="hidden" name="Subject" value="Email subject"> <input type="hidden" name="Body" value="A Big body "> </form> <a href="#" onclick="document.mailform.submit()">send email</a> 

I used this on an Ubuntu machine, with Thunderbird and Gmail as the default email client and Google Chrome and Firefox as browsers, and both worked. I do not know about the appearance, you need to check it for the appearance yourself;) But note that usually mailto links depend on the user machine.

+4
source share

Your problem is probably outside your eml file. I tested your file on my OSX machine, and the bcc is displayed in the Mail application.

However: bcc is not displayed by default in Outlook, so now you can have 2 situations:

  • bcc is not displayed, but can be installed from your eml file if this is not a problem: success!
  • Since bcc is not displayed, Outlook may not install it. In this case, you will have to do this so that each of them allows you to display the BCC by default. (go through all the desktops, ask the administrator, ...) It could be a blocker if you are not allowed to request this change.
0
source share

All Articles