diff --git a/app/views/email_smtp_settings/index.html.erb b/app/views/email_smtp_settings/index.html.erb index 378551ed..3407b0ef 100644 --- a/app/views/email_smtp_settings/index.html.erb +++ b/app/views/email_smtp_settings/index.html.erb @@ -1,6 +1,6 @@
<%= render 'shared/settings_nav' %> -
+

Email SMTP

<% value = @encrypted_config.value || {} %> <%= form_for @encrypted_config, url: settings_email_index_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %> @@ -38,7 +38,7 @@ <% if !Docuseal.multitenant? || can?(:manage, :personalization_advanced) %>
<%= ff.label :security_label, 'SMTP Security', class: 'label' %> -
+
<% [%w[STARTTLS none], %w[TLS tls], %w[SSL ssl], %w[Noverify noverify]].each do |(label, val)| %> <%= ff.label :security, value: val, for: "#{val}_radio", class: 'label' do %> <%= ff.radio_button :security, val, checked: (value['security'].blank? && val == 'none') || value['security'] == val, id: "#{val}_radio", class: 'base-radio mr-2' %>