Open New Outlook From Website, Too Long Mailto Link, *.eml File Bcc Field Not Loaded
Solution 1:
For your edit, you can use forms in this way:
<formname="mailform"action="mailto:youremail@domain.com"><inputtype="hidden"name="bcc"value="youremailBCC@domain.com"><inputtype="hidden"name="Subject"value="Email subject"><inputtype="hidden"name="Body"value="A Big body "></form><ahref="#"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.
Solution 2:
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:
'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 = Nothingset objoutlookApp = Nothing
wscript.quit
Solution 3:
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:
- bcc is not shown, but might be set from your eml file, if this is not an issue: success!
- since bcc is not shown outlook might not set it. In that case you'd have to make it so that everyone enables bcc to be shown by default. (walk by all desktops, ask the adminstrator, ...) This might be a blocker if you are not allowed to require this change.
Post a Comment for "Open New Outlook From Website, Too Long Mailto Link, *.eml File Bcc Field Not Loaded"