Hi all,
How to send mail using mailto function with attachment in java script?
Thanks in advance
Outlook Attachment using java script mailto function???
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhishek Namdeo6 reputationPosted Nov 28, 2008, 1:10 AM EST
The code is like this that I am trying as a test application.
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Pagetitle> <script type="text/javascript" language="javascript"> function OpenMail(){
location.href =
'mailto:[email protected]?attachment="D:\\a.txt" ';}
script> head><
body> <form id="form1" runat="server"> <div> <asp:Button ID="Button1" runat="server" onClientclick="OpenMail()" Text="Button" /> div> form> body> html>