Html link to open and reply to .eml file - html

I'd like to add a "Reply" button in my web application which can open a .eml email in the user's default mail application (eg Outlook), and hit "Reply".
mailto is clearly not an option since html bodies don't seem to be possible.
Any easy way to do this? Note that the server does have the .eml file

Related

Hyper Link That Opens .OFT in Outlook

I have some Outlook .oft template files uploaded to a web server.
Is it possible to create a link to the individual files that will result in them opening in outlook?
I have thus far only managed to create straight up HTML links that simply downloads them to folder.
Is it possible to create a link that associates the .oft file with outlook and therefore executes it and opens it as the email ready to send.
Thanks
I am not sure I understand the problem - if Outlook is installed, it associates .OFT files with itself. If a link points to an OFT file, opening the file will launch Outlook.
If you mean to bypass the Save/Open prompt in a browser, I don't think there is a way to do that.
When you click the link and it shows the download right click and say always open this kind of file then click to open. After that everytime someone clicks the link it will just open up.

Download .html file as attachment instead of opening

When I send a .html file as an attachment it opens in a new browser tab when it is clicked on. I want it to download as normal attachments are.
Is there a solution to this problem. Perhaps a programming solution? Or perhaps a file extension that downloads from emails but opens normally in a browser when clicked on?
I know that the recipient can right click and click download or something but I want the sender to be able to control whether or not it is downloaded or opened in a new tab.
Does a file extension that opens with browsers by default but downloads normally from emails exist?
Your webserver is sending a content-type header of type "text/html", and your clients' browsers are acting on that header. If you can tell your server to send "application/octet-stream", then the browsers will ask the users what to do with the file.
Maybe try changing the file extension to .php might work. PHP files are basically html files, but they expect PHP code in there - doesn't mean there has to be though. (This may work for other code language extensions too).
Not sure if the whole workflow will play out the way you want it, but worth a try...

how to force email client to open attachment using html

I'm working on a email template with HTML that have a button like "print your ticket", and I would like that when the user click the button, automatically, the client open or download the attachment. Is this possible using only HTML? Are there other solution?
Regards
You can't do this with an attachment. You could however do this by directing the user to a remote link where the attachment was stored using a Print your ticket

Sending a html form via email as a pdf

I have made an html form. What i want to happen is when the user clicks submit for the page to be emailed as a pdf (like the pdf that comes up if you print the webpage). I've been looking a all sorts of script but nothing seems to do what I want.
You will have to have a server-side component that takes the values, creates the PDF, and then e-mails it appropriately.
You'll be surprised to hear that not all browsers can easily make pdfs out of web pages. Hence, there is no universal JavaScript command that simply taps into a browser's capabilities. That leaves you with options:
Generate the pdf on the server (using, say, pdfbox, and send the email right from the server (using good old sendmail).
Generate the pdf on the server, have the user download it, and then transfer it all to his email client. (Might just work, see on Stackoverflow).
Generate the PDF in the browser, cross-platform. There are some Javascript-only libraries that can generate PDF.
Use Safari's PDF capabilities. Safari can make PDFs just in the print dialog. Explain that to your users and call window.print().

Add a new mailid in outlook by clicking on email id in a mail body

I want to generate a mail body in which i want to make a link, on which user clicks and add new contact outlook popup opens into the client screen.
How this can be done??
This is what vCard was invented for. Create a vCard file (from Outlook or using a third party application), and host it online on some webspace. Or, if needed, you can create a webpage that generates the vCard dynamically. Simply add a hyperlink to the vCard URL to the email message body.
Upon clicking upon the URL, Outlook will open up the contents from the vCard as a new Outlook contact.
That is, if Outlook isn't setup to block URLs, in which case you'd be better off sending the vCard as an attachment. Outlook signatures can be setup to contain a vCard.
I'm afraid this will most likely turn out to be impossible. Scripting is usually taboo in E-Mail clients.
This may be possible from within a web site using IE specific scripting (in VBScript, connecting to Outlook via COM or something), but security settings would block that from working for the vast majority of users anyway.