public void setPassword(String password) {
        this.password = password;
        if (password == null) {
            JiveGlobals.deleteProperty("mail.smtp.password");
        }
        else {
            JiveGlobals.setProperty("mail.smtp.password", password);
        }
        session = null;
    }
Sets the password that will be used when connecting to the SMTP
server. The default is {@code null}, or no password.

@param password the SMTP password.
xmppserver/src/main/java/org/jivesoftware/util/EmailService.java