1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-10 00:38:35 +02:00
neocities/workers/email_worker.rb
2013-07-13 16:52:27 +02:00

14 lines
317 B
Ruby

class EmailWorker
include Sidekiq::Worker
sidekiq_options queue: :emails, retry: 10, backtrace: true
def perform(args={})
Mail.deliver do
from args['from']
reply_to args['reply_to']
to args['to']
subject args['subject']
body args['body']
end
end
end