Click or drag to resize
AuthenticationHelperSendPasswordRequest Method
Sends e-mail to user for approval request of new password.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static string SendPasswordRequest(
	UserInfo user,
	string siteName,
	string source,
	string sendEmailFrom,
	string emailTemplateName,
	MacroResolver resolver,
	string requestUrl,
	string returnUrl = null
)

Parameters

user
Type: CMS.MembershipUserInfo
User who should receive the password request.
siteName
Type: SystemString
Site name used to process e-mail templates.
source
Type: SystemString
Source of the request, used for logging.
sendEmailFrom
Type: SystemString
Email address of the sender.
emailTemplateName
Type: SystemString
Email template name to be used for the email.
resolver
Type: CMS.MacroEngineMacroResolver
Macro resolver used to resolve values in e-mail template.
requestUrl
Type: SystemString
URL which will be send to user to finish the password reset process.
returnUrl (Optional)
Type: SystemString
URL to which the user will be redirected after finishing the password reset process.

Return Value

Type: String
Message with result description.
See Also