anitha r

anitha r

  • NA
  • 20
  • 20.5k

How To Send Email Using DomainServiceClass in Silverlight

Apr 23 2011 2:37 AM
I Have a Data Grid as Follows:
CheckBoxField,EmployeeName, EmployeeId,LeaveStatus,SubCode
*  ,  XX  ,  1  ,  Pending  ,2 
and i have 2 tables They Are Employee table, and Leave Table...
Employee Table Have Following datafields:
Employee Id,EmployeeName,Email
1  , XX  ,[email protected]
2  ,YY  ,[email protected]
Leave Table Have The Following Fields :
EmployeeId,EmployeeName,LeaveStatus,SubCode
1  ,XX  ,Pending  ,2
And My DataGrid ItemSource=Leavetable
Am Using DomainServiceClass and Ado.NetDataEntityModel
My Question Is?
When User Check The CheckBox In DataGrid And Click The Cancel Button The LEaveStatus Will Be UpDated As "Cancelled" And Mail Whould Be Automatically Send To The Employee
In This The Mail FromAddress Would Be TakenBy EmployeeTable Which One Is Equal To Current User Based On That Id The From Email Address Would Be Taken
and To Address Is Which One Is Equal To SubCode ThatMeans
From LeaveTable SubCode=EmployeeTable EmployeeID Then The Email Address Of Equal To SubCode Will Be taken as To Address
Finally My Question Is
How To Send a Mail From:[email protected]  Mail To:[email protected]


Answers (1)