In my feedback form I am not using any database, so I want the details of the user filling the form like Name, Email,Message which I have accomplished using the below code
MailMessage mail = new MailMessage();
mail.From = new MailAddress("webquestionss@gmail.com");
mail.To.Add("webquestionss@gmail.com");
mail.To.Add(Txtemail.Text);
mail.Subject = "Email testing";
string body = "User Name Is:" + TxtName.Text + "<br>" + "Email Id Is: " + Txtemail.Text + "<br>" + "Message Is:"+TxtMessage.Text;
mail.Body=body;
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Credentials = new System.Net.NetworkCredential("webquestionss@gmail.com@gmail.com", "password");
smtp.EnableSsl = true;
smtp.Send(mail);
In the same code I want to send a "Thankyou" mail to the user, in short two emails in 1stone I will get the details of the user and in the 2nd mail user will get a mail stating
"Thankyou etc".How do I modify my code to accomplish this task?