Hi,
I have a simple feedback form consist of 3 textbox. It contains The name, email address and comments.
After a user has successfully entered those 3 textbox, the feedback form will be mailed to the admin.
Here is the coding that I have come up with.
protected void Button1_Click(object sender, EventArgs e)
{
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
try
{
MailAddress fromAddress = new MailAddress(txtEmail.Text, txtName.Text);
// You can specify the host name or ipaddress of your server
// Default in IIS will be localhost
smtpClient.Host = "localhost";
Go to the complete details ...