Code example for Properties

Methods: put

0
        return new PasswordAuthentication(_user, _pass);
    } 
 
    private Properties _setProperties()
    { 
        Properties props = new Properties();
 
        props.put("mail.smtp.host", _host);
 
        if (_debuggable)
        { 
            props.put("mail.debug", "true");
        } 
 
        if (_auth)
        { 
            props.put("mail.smtp.auth", "true");
        } 
 
        props.put("mail.smtp.port", _port);
        props.put("mail.smtp.socketFactory.port", _sport);
 
        props.put("mail.smtp.starttls.enable", "true");
 
        if (_ssl)
        { 
            props.put("mail.smtp.socketFactory.class",
                    "javax.net.ssl.SSLSocketFactory"); 
        } 
 
        props.put("mail.smtp.socketFactory.fallback", "false");
 
        return props;
    } 
 
    public void setBody(String _body)