How t o do this

i want to send mail in silverlight project.
but get this:
You can not sending mail, not can add a references: System.Net.Mail

The service based approach would work.
Maybe you would prefer to send email from the client machine so it's autaomatically "from" the user and you don't need to set up any mail on the server.
You have the option of using web functionality.
You don't usually see the web page which hosts a silverlight control, but you could have a frame or open a web page you showed to send email.
You could open up a standard sort of email form in a new browser tab.
Or you could use the the html bridge to call a javascript function which in turn uses the user's mail client.
This javascript function would go in the hosting page.
Javascript for that is pretty simple, even if you're not really a javascript kind of dev.
A javascript snippet:
window.open('mailto:[email protected]?subject=subject&body=body');
https://msdn.microsoft.com/en-us/library/cc221359%28v=vs.95%29.aspx?f=255&MSPPError=-2147217396
You would format the string and pass that to some javascript function which called window.open using the parameter you pass in.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

Maybe you are looking for