I have been sending email from C# and they are working fine, but now I am also looking for the functionality to allow receiver to unsubscribe. I am unable to get how to proceed as I have no idea. I googled enough so need some hint.
Below is my code:
MailMessage loginInfo = new MailMessage();
loginInfo.To.Add(EmailTxt.Text.ToString());
loginInfo.From = new MailAddress(sEmailId);
loginInfo.Subject = "Subject";
loginInfo.Body = "Your username is: " +;
loginInfo.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = sHost;
smtp.Port = 25;
smtp.EnableSsl = false;
smtp.Credentials = new System.Net.NetworkCredential("", "");
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Send(loginInfo);