trying to pass parameter to Winform exe on click of Hyperlink from email.
var smtpMessage = new MailMessage();
bool isSuccess = false;
int retryCount = 0;
smtpMessage.Subject = "helloooo";
smtpMessage.From = new MailAddress("[email protected]");
StringBuilder s = new StringBuilder();
string test ="" + "Click";
string subscriber= "[email protected]";
smtpMessage.To.Add(new MailAddress(subscriber));
smtpMessage.Body = s.ToString();
while (retryCount < 3)
{
var client = new SmtpClient();
try
{
client.Send(smtpMessage);
retryCount = 3;
isSuccess = true;
}
catch (Exception ex)
{
throw;
}
}
Suresh BabuPosted Sep 21, 2013, 3:02 AM
in above code u r getting any error