C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » JavaScript »

outlook Attachment using java script mailto function???


Posted Date: 28 Nov 2008      Posted By: Abhishek Namdeo      Member Level: Silver     Points: 1   Responses: 1



HI lalitha

I removed the quoted " . It is opening the outlook window , but without attachment

<%@ 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 Page</title>
<script type="text/javascript" language="javascript">
function OpenMail()
{
location.href = 'mailto:abhishek@gmail.com?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>





Responses

Author: lalitha    28 Nov 2008Member Level: GoldRating: 4 out of 54 out of 54 out of 54 out of 5     Points: 6

Hey I guess we can't send attachements through Mailto method . Try mailmessage

http://msdn.microsoft.com/en-us/library/aa767737.aspx

read this for clarification



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : send mail :::Java script mailto function with attachment
Previous : java script validation
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use