refactor(dolist): drop smtp deliver method

This commit is contained in:
Colin Darie 2023-04-27 09:50:12 +02:00
parent f7a80eb905
commit 5cc2712873
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
5 changed files with 3 additions and 29 deletions

View file

@ -1,12 +0,0 @@
module Dolist
class SMTP < ::Mail::SMTP
def deliver!(mail)
mail.from(ENV['DOLIST_NO_REPLY_EMAIL'])
mail.sender(ENV['DOLIST_NO_REPLY_EMAIL'])
mail['X-ACCOUNT-ID'] = Rails.application.secrets.dolist[:account_id]
mail['X-Dolist-Sending-Type'] = 'TransactionalService' # send even if the target is not active
super(mail)
end
end
end