Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

VB.NET
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)
Posted
Updated 29-Nov-15 16:58pm
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900