ChangePassword Method  
 

Change the mailbox password for the current user.

Syntax

object.ChangePassword( OldPassword, NewPassword )

Parameters

OldPassword
A string which specifies the user's current mailbox password.
NewPassword
A string which specifies the user's new password. An error will be returned if the old password and the new password are the same value.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Remarks

The ChangePassword method changes the password that will be used to authenticate the user. This method requires that the UserName property be set, but it is not required that the user be logged into the POP3 server. 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

Password Property, UserName Property