I'm trying to open a *.eml
file 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 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.
So what I need:
- a link similar to a
mailto
link - must work with more than 2000 characters
- must work in Google Chrome & Outlook 2010
What I got:
- PHP
- JavaScript with jQuery
I found a solution for my given problem.
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:
Your problem is probably outside of your eml file. I've tested your file on my OSX machine and the bcc is showing in the Mail app.
However: bcc is by default not shown in outlook so now you could have 2 situations:
For your edit, you can use forms in this way:
I used this on an Ubuntu machine, with Thunderbird and Gmail web as default mail client and Google Chrome and Firefox as browsers and both worked. I don't know about outlook, you need to test it for outlook yourself ;) But notice, generally mailto links depends on user's machine.