Link to home
Start Free TrialLog in
Avatar of OlympicNigel
OlympicNigelFlag for United Kingdom of Great Britain and Northern Ireland

asked on

USe email within SIlverlight OOB app

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
Avatar of dj_alik
dj_alik

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"));
to your .xaml.vb
Imports System.Windows.Browser


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

ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of OlympicNigel

ASKER

@ 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 :-)