SmtpClient
mail.From =
smtp.Credentials =
mail.To.Add(txtTo.Text);
mail.Subject =
mail.Body = rtxtBody.Text;
smtp.Host =
smtp.Port = 25;
smtp.EnableSsl =
smtp.Send(mail);
With this I am getting the mail sent to the user id given in credentials. But I need the mail to be send to the address entered by the user in the from text box. I am getting mail sent to 'To' address correctly. But this is the problem with from. Can you please help me?
And also when we reply to the mail sent, the to address should be the address address by the first user in default. I think I can get this with mail send to the address entered by the user.