mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 23:45:21 +02:00
Allow a self-hosted user to configure their SMTP settings directly from within the UI (#682)
* Add setting fields to model * Allow to configure SMTP settings * Normalize locales * Cleanup locales * Remove 'coming soon' * fix test * Reset credentials * Reset development config * Check smtp spelling * Use post instead of get method * TLS ENV variable is more descriptive * Rework application mailer * Follow rails convention for mailer action params * Reset schema.rb to main * Test WIP * Add test for controller and mailer * Move tests from controller to model * Custom error message if settings are not all present * Comment smtp config in development env * Add default tls enabled value * Rubocop * Fix controller test * Reset credentials * Normalize locales * Test * fix test * Fix application mailer test that fails randomly * Error flash message instead of notice * Rework application mailer tests
This commit is contained in:
parent
f0480e7ab7
commit
6fdb8e8d69
15 changed files with 200 additions and 15 deletions
7
config/locales/views/notification_mailer/en.yml
Normal file
7
config/locales/views/notification_mailer/en.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
en:
|
||||
notification_mailer:
|
||||
test_email:
|
||||
test_email_body: Congratulation ! Connection to the SMTP server is now correctly
|
||||
configured.
|
||||
test_email_subject: SMTP settings verified !
|
|
@ -2,7 +2,15 @@
|
|||
en:
|
||||
settings:
|
||||
hostings:
|
||||
send_test_email:
|
||||
error: 'Configuration error: Test email could not be sent'
|
||||
missing_smtp_setting_error: Ensure that all smtp settings are filled in
|
||||
success: Test email has been sent successfully
|
||||
show:
|
||||
domain: App Domain
|
||||
domain_placeholder: mydomain.com
|
||||
email_sender: Email Sender
|
||||
email_sender_placeholder: user@mydomain.com
|
||||
general_settings_title: General Settings
|
||||
page_title: Self-Hosting
|
||||
provider_settings:
|
||||
|
@ -13,8 +21,6 @@ en:
|
|||
smtp_settings:
|
||||
description: Configure outgoing mail server settings for notifications and
|
||||
alerts
|
||||
domain: App Domain
|
||||
domain_placeholder: mydomain.com
|
||||
host: SMTP Host
|
||||
host_placeholder: smtp.gmail.com
|
||||
password: Password
|
||||
|
@ -24,7 +30,7 @@ en:
|
|||
send_test_email: Send Test Email
|
||||
send_test_email_button: Send Test Email
|
||||
send_test_email_description: Verify SMTP settings by sending a test email
|
||||
title: SMTP Email Configuration (coming soon...)
|
||||
title: SMTP Email Configuration
|
||||
username: Username
|
||||
username_placeholder: username@gmail.com
|
||||
upgrades:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue