Click here to Skip to main content
14,694,507 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 ,x@g.c
2 ,YY ,Y@g.c
Leave Table Have The Following Fields :
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:Y@g.c Mail To:X@g.c

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900