单击“链接以批准申请表”
问题描述:
我正在写一个审批系统。在批准系统中,请求者需要请求批准请求应用程序。在请求者填写信息并通过电子邮件将应用程序发送给经理之后。管理员只需单击链接即可查看应用程序并批准该应用程序。现在,我坚持要做代码点击链接批准。任何人请给出建议或代码继续我的项目。谢谢。
I'm writing an approval system. In the approval system requester need to request to approve the request application. After the requester fill up the information and send the application to manager via email. The manager just need to click the link to view the application and approve the application. Now, I'm stuck to do the code for click the link for approve. Anyone Please give suggestion or code to continue my project.Thank you.
Dim mail As New MailMessage()
mail.[To].Add(AppMgr.SelectedValue)
'mail.To.Add("man@celestica.com")
mail.IsBodyHtml = True
Dim smtp As New SmtpClient()
smtp.Host = "smtp.gmail.com"
'Or Your SMTP Server Address
smtp.Credentials = New System.Net.NetworkCredential("YourGmailID@celestica.com", "YourcelesticamailPassword")
'Or your Smtp Email ID and Password
smtp.EnableSsl = True
smtp.Send(mail)
答
创建像
mail.Body = strBody;
和内部邮件正文使用锚标签查看页面,你想要向管理员显示加密的URL并在该页面内创建一个按钮来激活页面。
Create Emailbody like
mail.Body = strBody;
and inside email body use anchor tag to view the page, you wanna show the admin with encrypted url and inside that page create a button to activate the page.