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
Visual Basic.NET.NET Programming

Avatar of undefined
Last Comment
OlympicNigel
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"));
Avatar of dj_alik
dj_alik

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of OlympicNigel
OlympicNigel
Flag of United Kingdom of Great Britain and Northern Ireland image

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

.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo