Click or drag to resize
AuthenticationHelperSendPassword Method (UserInfo, String, String, String, String, String, MacroResolver, Boolean)
Sends given user an email with forgotten/new password. (If the new password isn't provided current password is used for the plain text format or new password is generated for the SHA1/SHA2 format.)

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public static string SendPassword(
	UserInfo user,
	string newPassword,
	string siteName,
	string source,
	string sendEmailFrom,
	string emailTemplateName,
	MacroResolver resolver,
	out bool success
)

Parameters

user
Type: CMS.MembershipUserInfo
User
newPassword
Type: SystemString
New password (optional)
siteName
Type: SystemString
Site name
source
Type: SystemString
Source of calling, will be used for log event
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
success
Type: SystemBoolean
Returns whether sending of request was successful.

Return Value

Type: String
See Also