Click here to Skip to main content
11,636,889 members (68,792 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET C#3.5
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)
{
..............................................
/**bccId and CCI are being fetched from table through query**/
 
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...
Posted 21-May-12 20:41pm
Edited 21-May-12 20:46pm
(no name)5.1K
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 stibee 313
1 jyo.net 295
2 OriginalGriff 285
3 Suvendu Shekhar Giri 205
4 Sergey Alexandrovich Kryukov 194
0 OriginalGriff 8,941
1 Sergey Alexandrovich Kryukov 8,493
2 Mika Wendelius 6,909
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100