APISonar


org.openhab.binding.mail.internal.config.SMTPConfig.security

> org > openhab > binding > mail > internal > config > SMTPConfig > security
org APIs openhab APIs binding APIs mail APIs internal APIs config APIs SMTPConfig APIs security APIs

Example 1
private @NonNullByDefault({}) SMTPConfig config;

    public void initialize() {
        config = getConfigAs(SMTPConfig.class);

        if (config.port == 0) {
            if (config.security == ServerSecurity.SSL) {
                config.port = 465;
            } else {
                config.port = 25;
            }
        }

        updateStatus(ThingStatus.ONLINE);
    }