How to Send Email in Silverlight

No.of Views3010
Bookmarked0 times
Downloads 
Votes0
By  usamawahabkhan   On  10 Jun 2010 09:06:10
Tag : Silver Light and XAML , Utilities
In this article, i have describe how to send email in silverlight
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

In this article, i have describe, how to send email in silver light using .NET Framework. beucase now days every applicaion  has email sending features, since when we are develop application in silverlight, we have to add email sending features as well.

Steps by Steps

I have created silver light application using vs 20010,the  GUI like following to send email. 

Image Loading

Above GUI xaml like following, 

Image Loading

Then add asp.net Generic Handler in Web.Project, 

Image Loading

Now i'm going to Add Static Class and Crate Send Email Function.the email sending code like following,you can download sample code of this project end of this article

Image Loading

Now we have to add code to peform mail sending through the generic handler. 

Image Loading

Add This Code At SilverLight Project(MainPage.xaml.cs) on send button click. 

Image Loading

Finally, we have to configure the SMTP settign inside the configuration file, here is settings details, 

Image Loading

that's all press F5 and run then enter the email address send email.

Sample Project Source

Download source files -87 kb

 
Sign Up to vote for this article
 
About Author
 
usamawahabkhan
Occupation-Not Provided
Company-Not Provided
Member Type-Senior
Location-Pakistan
Joined date-06 May 2010
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top