Email SMTP
Configure your to send emails (TODO)
<% value = @encrypted_config.value || {} %>
<%= form_for @encrypted_config, url: settings_email_index_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<%= f.fields_for :value do |ff| %>
<%= ff.label :host, class: 'label' %>
<%= ff.text_field :host, value: value['host'], required: true, class: 'base-input' %>
<%= ff.label :port, class: 'label' %>
<%= ff.text_field :port, value: value['port'], required: true, class: 'base-input' %>
<%= ff.label :username, class: 'label' %>
<%= ff.text_field :username, value: value['username'], required: true, class: 'base-input' %>
<%= ff.label :password, class: 'label' %>
<%= ff.password_field :password, value: value['password'], required: true, class: 'base-input' %>
<%= ff.label :from_email, 'Send from', class: 'label' %>
<%= ff.email_field :from_email, value: value['from_email'], required: true, class: 'base-input' %>
<% end %>
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button' %>
<% end %>