HTML Body mail with link button
-
Hi All, In C#, How To Send A Hyperlink Using Query String Method. I have developing a web application of user enter enters the personal data. That information has sent to admin mail with approve/reject link button. When the Admin click the approve link, it has approve.aspx page with the user id as query string to update the db as approved. otherwise rejected. I can try the following code.
mail.Subject = "New User";
mail.Body = "<p>Dear Sir, <br><br> " + txtfname.Text + " " + txtlname.Text + ", has raised a requisition that needs your approval. <br><br><br> Please click to [<a href='http://localhost:1240/IMA/Approve.aspx?id="+tt+"'> Approve</a> ] [<a href='Reject.aspx'>Reject</a> ] the request. <br> <br> <br> <b>Note</b> : Please do not reply. This e-mail has been auto-generated.</p>";
mail.IsBodyHtml = true;In the mail i have move the mouse over the approve link it shows http://.../approve.aspx?id=1, but click the appove link it shows <a href="http://.../id=1. I don't know why. Please help me out. Thanks in advance, Murugavel S
-
Hi All, In C#, How To Send A Hyperlink Using Query String Method. I have developing a web application of user enter enters the personal data. That information has sent to admin mail with approve/reject link button. When the Admin click the approve link, it has approve.aspx page with the user id as query string to update the db as approved. otherwise rejected. I can try the following code.
mail.Subject = "New User";
mail.Body = "<p>Dear Sir, <br><br> " + txtfname.Text + " " + txtlname.Text + ", has raised a requisition that needs your approval. <br><br><br> Please click to [<a href='http://localhost:1240/IMA/Approve.aspx?id="+tt+"'> Approve</a> ] [<a href='Reject.aspx'>Reject</a> ] the request. <br> <br> <br> <b>Note</b> : Please do not reply. This e-mail has been auto-generated.</p>";
mail.IsBodyHtml = true;In the mail i have move the mouse over the approve link it shows http://.../approve.aspx?id=1, but click the appove link it shows <a href="http://.../id=1. I don't know why. Please help me out. Thanks in advance, Murugavel S
Check the source of mail message to see if link renders correctly.
No more Mister Nice Guy... >: |