Gaurang Upadhyay

Gaurang Upadhyay

  • NA
  • 175
  • 66.7k

URL Send through mailed not able to open

Jul 17 2012 8:09 AM
In This Code i have send link : Code Here 

 string clientMachineName= (Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName);
                    strAcceptLink = "<a href=\"http://" + clientMachineName + Request.Url.AbsolutePath.Substring(0, Request.Url.AbsolutePath.LastIndexOf('/') + 1) + "leaverequestreport.aspx?mode=2&p1=" + dtLeaveRequest.Rows[0]["Rowguid"].ToString() + "&p2=" + dtLeaveRequest.Rows[0]["Leave_Request_Id"].ToString() + "&p3=2&flag=0" + "\">Leave Approval</a>";
                    strAcceptLink = @"<tr>
                                        <td width='100%' colspan = '3' align='left' >
                                            Please, click here for " + strAcceptLink + @"
                                        </td>
                                    </tr>";
                }


Now when other person get mailed and click on link error was generated .

For example : 
Login URL : http://Ke.CM-RV.com:8090/webforms/index.aspx -- 

I m login and send mail through my login Id then after  i opened mailed and click on that 
link at that time http://192.168.100.164/webforms/index.aspx --  this link opens but it gives error of HTTP Error 400 : 

Please help me in this.