mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Log the SMTP response in EmailLog (#17056)
When sending emails with delivery_method_options -> return_response set to true, the SMTP sending code inside Mail will return the SMTP response when calling deliver! for mail within the app. This commit ensures that Email::Sender captures this response if it is returned and stores it against the EmailLog created for the sent email. A follow up PR will make this visible within the admin email UI.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddSmtpTransactionResponseToEmailLogs < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :email_logs, :smtp_transaction_response, :string, null: true, limit: 500
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user