mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
15 lines
359 B
Ruby
15 lines
359 B
Ruby
class EmailWorker
|
|
include Sidekiq::Worker
|
|
sidekiq_options queue: :emails, retry: 10, backtrace: true
|
|
|
|
def perform(args={})
|
|
Mail.deliver do
|
|
# TODO this is not doing UTF-8 properly.
|
|
from args['from']
|
|
reply_to args['reply_to']
|
|
to args['to']
|
|
subject args['subject']
|
|
body args['body']
|
|
end
|
|
end
|
|
end
|