Reference NetstairAppAuthentication.dll to your project
Or Add NetstairAppAuthentication.dll to the project bin folder
 
Web.Config (Add the following keys)
<add key="BUSINESS-NAME" value="Company Name Here"/>
<add key="BUSINESS-EMAIL" value="{noreply@yourbusinessname.com}"/>
<add key="SMTP-HOST" value="{email server here}"/>
<add key="SMTP-USER" value="{email server user name here}"/>
<add key="SMTP-KEY" value="{email server password here}"/>
<add key="SMTP-PORT" value="{25 or 587 here}"/>
HOW TO Send the registered user to confirm his/her email.
NetstairAppAuthetication.ResourceTools oObj = new NetstairAppAuthetication.ResourceTools();
if (oObj.SendConfirmation(iConfirmationId,this.txtPersonalEmail.Text.Trim(),"http://www.yourdomain.com/ConfirmEmail.aspx","Activate your Registration"))
{
   //- Successfully sent.
}
HOW TO: Password Recovery
NetstairAppAuthetication.ResourceTools oObj = new NetstairAppAuthetication.ResourceTools();
 if(oObj.RetrievePassword(this.txtPersonalEmail.Text.Trim(),"ABC1002","343243242","ABC","http://www.yourdomain.com/"))
 {
      //- Successfully sent.
 }
HOW TO Send the device verification Code
 NetstairAppAuthetication.ResourceTools oObj = new NetstairAppAuthetication.ResourceTools();
if (oObj.DeviceVerificationCode(1,this.txtPersonalEmail.Text.Trim(),"988989","http://www.yourdomain.com/"))
{
  //- Successfully sent.
}
 
 
Download the Assembly here  NetstairAppAuthenticationVer1.zip

Add Feedback