I would like to open OUT LOOK mail client for sending mail with CC, BCC, subjects- I made the following javascript function to open out look on clicking a link button--
Link button event has been given below.
function hello(sub, cc, bcc) {
var myWindow = window.open("mailto:?subject=" + sub + "&cc= " + cc, '', '', 'titlebar=no,menubar=no,width=1,height=1,visible=none', '_top');
myWindow.close();
}
****************************aspx.cs file
protected void LinkButton1_Click(object sender, EventArgs e)
{
..............................................
Page.RegisterStartupScript("key1", "<script = language='javascript'>hello('" + bccId + "','" + ccId + "');</script>");
}
*******aspx page fro link button...
..................
<asp:LinkButton ID="LinkButton1" runat="server" Height="22px" Width="140px"
onclick="LinkButton1_Click" >E-mail IN
............
Now the problems is when this code is run in Windows server 2008, then the outlook is being opened with another unnecessary pop up in IE9 but in Mozilla it is not coming, only Outlook is being opened..
In IE 9 I only need to open the outlook express...but it not happening...
Need a prompt solution...ion...