hi friends
I send a mail with link in body tag like this
body += "<br /><a href = '" + Request.Url.AbsoluteUri.Replace("MaterialRequestForm.aspx", "ViewMaterialRequest.aspx?EMPID=" + txtEmployeeID.Text) + "'>Click here to view Materials</a>";
When I opened this link from toemail in my localsystem the aspx page is dispaying and working perfectly but when I am trying to open in another system the aspx page is not displaying it showing "Access denied" error.
I also tried by placing ipconfig in url like this
body += "<br /><a href = '" + Request.Url.AbsoluteUri.Replace("http:
what my question is how to open email send link in another pc to view the aspx page after view admin may approve or reject the process in that aspx page through Lan network.
Please guide me how to acheive this.
Thanks in advance
What I have tried:
MailMessage mm = new MailMessage(strfromemailId, strtoemail);
mm.Subject = "Request";
string body = "Hello " + Name.Value + ",";
body += "
Please click the following link to view the requested Materials";
body += "
Click here to view Materials";
body += "
Thank you;
mm.Body = body;
mm.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.EnableSsl = true;
NetworkCredential NetworkCred = new NetworkCredential();
NetworkCred.UserName = strfromemailId;
NetworkCred.Password = strPwd;
smtp.UseDefaultCredentials = true;
smtp.Credentials = NetworkCred;
smtp.Port = 587;
smtp.Send(mm);