Hi all,
How to send mail using mailto function with attachment in java script?
Thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek NamdeoPosted Nov 28, 2008, 6:10 AM
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>