Catalyst Internet Mail .NET

InternetMail.ChangePassword Method 

Change the mailbox password for the current user.

[Visual Basic]
Public Function ChangePassword( _
   ByVal userName As String, _
   ByVal oldPassword As String, _
   ByVal newPassword As String _
) As Boolean
[C#]
public bool ChangePassword(
   string userName,
   string oldPassword,
   string newPassword
);

Parameters

userName
A string which specifies the username for which the password will be changed.
oldPassword
A string which specifies the current password.
newPassword
A string which specifies the new password.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The ChangePassword method changes the current password that will be used to authenticate the user. Once the password has been changed, the Password property will be updated with the new password.

Note that in order to change the user's mailbox password, the server must be running the poppass service on port 106, on the same server. Because passwords are transmitted as clear text (unencrypted), this service is not considered secure and may not be available.

See Also

InternetMail Class | SocketTools Namespace