/** * Construct a specification of mail configuration with the given username, * Mail From Address and mail hostname. * @param the username. * @param the from address. * @param the mail hostname. */ public MailConfiguration(String username, String mailFrom, String mailHost) { // called from MailConfigurationNode, which is never used this.username = username; this.mailFrom = mailFrom; this.mailHost = mailHost; put(MAIL_FROM, mailFrom); put(MAIL_USER, username); put(MAIL_HOST, mailHost); }
put(MAIL_HOST, mailHost); put(MAIL_USER, username); put(MAIL_STORE_PROTOCOL, storeProtocol); put(MAIL_TRANSPORT_PROTOCOL, transportProtocol); if (storeProtocol != null) put(MAIL_PREFIX + storeProtocol + MAIL_SUFFIX_CLASS, storeProtocolClass); if (transportProtocol != null) put(MAIL_PREFIX + transportProtocol + MAIL_SUFFIX_CLASS, transportProtocolClass); put(MAIL_FROM, mailFrom); put(MAIL_DEBUG, (debug ? "true" : "false")); name = name.replace(PROP_NAME_DELIM_LEGACY, MAIL_DELIM); put(name, value); if (_logger.isLoggable(Level.FINE)) _logger.fine("mail property: " + name + " = " + value);