Solved

Silverlight <Hyperlink> mailto:

Posted on 2013-06-18
1
1,018 Views
Last Modified: 2013-07-07
I have a Silverlight application & Website created using visual studio 2010.

I want to open outlook when I click the hyperlinkbutton in my application.  

When I click allow button its opening a new browser window (IE 10 ) and then Opens Outlook.
<HyperlinkButton HorizontalAlignment="Left"  NavigateUri="mailto:abc@xyz.com" >

but in that new browser window it gives error message -  
Navigation to the webpage was canceled  

I  also checked with TargetName= "_self" , _blank; but still i am getting the same error
 
I tried using the answer suggestedin http://www.experts-exchange.com/Microsoft/Development/Microsoft_Programming/WPF_and_Silverlight/Q_27023697.html 

It does work for me, but I cannot go to each user's machine and open msconfig.exe and make changes as mentioned in that site ....

My only aim is to open outlook/default email from my silverlight page , put send email to:
abc@xyz.com and put something in subject of that email...

What should I do... please help... thanks a lot
0
Comment
Question by:at999
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 39258182
Hi, at999.

I'll start by saying that I know nothing about Silverlight.  That said, a mailto link should create a new email using the default email client on the computer the ink is invoked on.  For example, open IE and enter "mailto:abc@xyz.com?subject=Testing" (without the quotes) in the address line.  If Outlook is your default email client, then the result should be a new Outlook email addressed to abc@xyz.com with a subject of "testing".  If the UAC asks you if you want to allow the web page to perform the action, then uncheck the box that tells IE to perform the check every time.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question