Function "SendResetPasswordMail()"

Top  Previous  Next

Sends an email to the email address of the user that contains a link in it to the Reset Password page where he can change his password. The SMTP account and the text of the the email are defined with securityDomain configuration element.

This function requires that the user has a valid email address registered in the system.

Syntax:

SendResetPasswordMail(user-name,email,reset-password-page)

 

 

Parameters

user-name
email

At least one of the values of these two parameters must be non-blank.

reset-password-page

The name of the page that will be opened when the user clicks on the link provided in the email.

See Resetting Forgotten Passwords

 

Completion Codes:

0: Normal completion

12: Syntax error or Security Broker error

 

Example:

SendResetPasswordMail(username,email,'ChangePasswordPage')

 

See SML Functions