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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Jun 29, 2011, 3:56 AM EDT
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
Nethra R SRank #6,347 · 269 reputationPosted Jun 29, 2011, 8:48 PM EDT
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 GaradRank #191 · 12.8K reputationPosted Jun 29, 2011, 9:39 PM EDT
Email Sending in ASP.net 2.0
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Jun 30, 2011, 9:04 PM EDT