Hi,
At the button click event i am storing some 6 textbox values in a sql table.. The same i want to send it to a fixed email id.. How do i do it plzz guide as i am newbie.
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akkiraju IvaturiPosted Jul 1, 2011, 1:04 AM
Krishna GaradPosted Jun 30, 2011, 1:39 AM
Email Sending in ASP.net 2.0
Nethra R SPosted Jun 30, 2011, 12:48 AM
I understood that. Data is getting saved in table. I want all users who have entered the data,that details should go to a fixed email id.. Can u tell me how to do that(code that plzz)
Krishna GaradPosted Jun 29, 2011, 7:56 AM
button_click
{
if(AddDataToDataBase())
{
SendMail();
}
}
private bool AddDataToDataBase()
{
//write the code for insert and return true or false
}
private void SendMail()
{
//write code to send the mail
}
If you want some code to add data to database and sending mail check the