Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open new Outlook from website, too long mailTo Link, *.eml file bcc field not loaded

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: [email protected]
Subject: Mail Subject
cc: [email protected]
bcc: [email protected]
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
like image 480
JaGo Avatar asked Nov 19 '13 16:11

JaGo


People also ask

Why can't I open an EML attachments?

EML files are not opening in Outlook Express, even though it is installed. This is usually caused because another program has hijacked the EML extension. You'll need to reset the file associations for Outlook Express. Close Outlook Express if it is open.

How do I email a .eml file?

In Outlook on the web (Office 365)Click New message. On the message list, select an email you want to export and drop it onto the body of the new email. This will attach the email as an . eml file to the new message, as shown in Fig.

Can you edit an EML file?

EML Editor is an online WYSIWYG HTML email editor application. It allows you to create EML file, edit them, add and remove attachments, and more. The message body can be edited in our HTML editor. You can also edit the subject of the letter, its recipients, including carbon copy and blind carbon copy recipients.


1 Answers

For your edit, you can use forms in this way:

<form name="mailform" action="mailto:[email protected]">
    <input type="hidden" name="bcc" value="[email protected]">
    <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 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.

like image 77
Mostafa Shahverdy Avatar answered Nov 02 '22 05:11

Mostafa Shahverdy