1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-22 07:38:18 +00:00

feat: new configuration system (and schema) (#2819)

هذا الالتزام موجود في:
Adam Cooke
2024-02-26 12:41:57 +00:00
ملتزم من قبل GitHub
الأصل 1c5ff5a9a6
التزام 0163ac3d10
77 ملفات معدلة مع 1840 إضافات و593 حذوفات

عرض الملف

@@ -2,9 +2,10 @@
require "postal/config"
if Postal.config&.smtp
# TODO: by default, we should just send mail through the local Postal
# installation rather than having to actually configure an SMTP server.
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = { address: Postal.config.smtp.host, user_name: Postal.config.smtp.username, password: Postal.config.smtp.password, port: Postal.config.smtp.port || 25 }
end
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: Postal::Config.smtp.host,
user_name: Postal::Config.smtp.username,
password: Postal::Config.smtp.password,
port: Postal::Config.smtp.port
}