/** * Constructor with default port, and no authentication * * @param sHost * SMTP server name or IP address. May neither be <code>null</code> nor * empty. */ public SMTPSettings (@Nonnull final String sHost) { this (sHost, -1, null, null, (Charset) null, EmailGlobalSettings.isUseSSL ()); }
final boolean bSSLEnabled = StringParser.parseBool (sSSLEnabled, EmailGlobalSettings.isUseSSL ());
final boolean bSSLEnabled = aWPEC.getCheckBoxAttr (FIELD_SSL, EmailGlobalSettings.isUseSSL ()); final boolean bSTARTTLSEnabled = aWPEC.getCheckBoxAttr (FIELD_STARTTLS, EmailGlobalSettings.isUseSTARTTLS ()); final long nConnectionTimeoutMS = aWPEC.getAttributeAsLong (FIELD_CONNECTION_TIMEOUT, CGlobal.ILLEGAL_ULONG);
final Charset aCharset = CharsetHelper.getCharsetFromNameOrNull (sCharset); final boolean bSSLEnabled = aWPEC.params ().isCheckBoxChecked (FIELD_SSL, EmailGlobalSettings.isUseSSL ()); final boolean bSTARTTLSEnabled = aWPEC.params () .isCheckBoxChecked (FIELD_STARTTLS, EmailGlobalSettings.isUseSTARTTLS ());
final Charset aCharset = CharsetHelper.getCharsetFromNameOrNull (sCharset); final boolean bSSLEnabled = aWPEC.params ().isCheckBoxChecked (FIELD_SSL, EmailGlobalSettings.isUseSSL ()); final boolean bSTARTTLSEnabled = aWPEC.params () .isCheckBoxChecked (FIELD_STARTTLS, EmailGlobalSettings.isUseSTARTTLS ());
aTable.createItemRow () .setLabel (EText.MSG_EMAIL_USE_SSL.getDisplayText (aDisplayLocale)) .setCtrl (EWebBasicsText.getYesOrNo (EmailGlobalSettings.isUseSSL (), aDisplayLocale)); aTable.createItemRow () .setLabel (EText.MSG_EMAIL_USE_STARTTLS.getDisplayText (aDisplayLocale))
.setCtrl (Long.toString (EmailGlobalSettings.getMaxMailSendCount ()))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_USE_SSL.getDisplayText (aDisplayLocale)) .setCtrl (EPhotonCoreText.getYesOrNo (EmailGlobalSettings.isUseSSL (), aDisplayLocale))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_USE_STARTTLS.getDisplayText (aDisplayLocale))
.setCtrl (Long.toString (EmailGlobalSettings.getMaxMailSendCount ()))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_USE_SSL.getDisplayText (aDisplayLocale)) .setCtrl (EPhotonCoreText.getYesOrNo (EmailGlobalSettings.isUseSSL (), aDisplayLocale))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_USE_STARTTLS.getDisplayText (aDisplayLocale))
aForm.addFormGroup (new BootstrapFormGroup ().setLabel (sSSL) .setCtrl (new HCCheckBox (new RequestFieldBoolean (FIELD_SSL, aSettings == null ? EmailGlobalSettings.isUseSSL () : aSettings.isSSLEnabled ()))) .setErrorList (aFormErrors.getListOfField (FIELD_SSL)));
aForm.addFormGroup (new BootstrapFormGroup ().setLabel (sSSL) .setCtrl (new HCCheckBox (new RequestFieldBoolean (FIELD_SSL, aSettings == null ? EmailGlobalSettings.isUseSSL () : aSettings.isSSLEnabled ()))) .setErrorList (aFormErrors.getListOfField (FIELD_SSL)));
.setLabel (sSSL) .setCtrl (new HCCheckBox (new RequestFieldBoolean (FIELD_SSL, aSettings == null ? EmailGlobalSettings.isUseSSL () : aSettings.isSSLEnabled ()))) .setErrorList (aFormErrors.getListOfField (FIELD_SSL));