fix(message-dequeuer): ensure SMTP endpoints are sent to SMTP sender appropriately

closes #2853
This commit is contained in:
Adam Cooke
2024-03-06 14:09:29 +00:00
parent 4e1deb2d2a
commit e2d642c0cb
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -47,4 +47,8 @@ class SMTPEndpoint < ApplicationRecord
routes.each { |r| r.update(endpoint: nil, mode: "Reject") }
end
def to_smtp_client_server
SMTPClient::Server.new(hostname, port: port || 25, ssl_mode: ssl_mode)
end
end