Click or drag to resize
AuthenticationHelperSendPassword Method

Note: This API is now obsolete.

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: 10.0.0
Syntax
C#
[ObsoleteAttribute("Use method AuthenticationHelper.SendPasswordRequest(UserInfo, string, string, string, string, MacroResolver, string, string) instead.")]
public static string SendPassword(
	UserInfo user,
	string newPassword,
	string siteName,
	string source,
	string sendEmailFrom,
	string emailTemplateName,
	MacroResolver resolver
)

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

Return Value

Type: String
Message with result description
See Also