USe email within SIlverlight OOB app

OlympicNigel
OlympicNigel used Ask the Experts™
on
Im trying to open the default email client on a users system from a SL OOB application.

I have tried this:

<HyperlinkButton  NavigateUri="mailto:email@address.com" Content="HyperlinkButton" Height="23" HorizontalAlignment="Left" Margin="72,114,0,0" Name="HyperlinkButton2" VerticalAlignment="Top" Width="100" />
   
Which from my web readings should work but for me it throws a page not found error.

Does anyone have any idea why this might not be working for me.

Thanks

Nigel
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
for in browser application:
Add the below line to your .xaml.cs file to open mailto (email link) when an event gets fired (i.e. HyperlinkButton is clicked or etc):
HtmlPage.Window.Navigate(new Uri("mailto:test@test.com"));
Top Expert 2011

Commented:
to your .xaml.vb
Imports System.Windows.Browser


HtmlPage.Window.Navigate(New Uri("mailto:test@test.com"))

Most Valuable Expert 2012
Top Expert 2014
Commented:
Try adding

TargetName="_blank"

to this

<HyperlinkButton  NavigateUri="mailto:email@address.com" Content="HyperlinkButton" Height="23" HorizontalAlignment="Left" Margin="72,114,0,0" Name="HyperlinkButton2" VerticalAlignment="Top" Width="100" />

Author

Commented:
@ dj_alik: your method threw an exception "The DOM/scripting bridge is disabled"

@CodeCrusier: your method worked like a charm.

Thanks for your help guys. I can't believe it was something so simple that I was unable to find anywhere else.

Thanks EE :-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial