TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Lakshmi Priyank Buddiga
NA
1
1.8k
Unable to send arguments to winform exe on click of hyperlin
Sep 20 2013 5:11 PM
trying to pass parameter to Winform exe on click of Hyperlink from email.
Please find the code below to send mail having Hyperlink to open winform exe
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 ="<a href=C:\\WindowsFormsApplication1\\WindowsFormsApplication1\\bin\\Debug\\WindowsFormsApplication1.exe" + " test>" + "Click</a>";
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;
}
}
Reply
Answers (
1
)
Exception handleing
variable error, need help please