There might be better ways, but you can add styles to emails in a plugin by calling Email::Styles.register_plugin_style and passing it a block that acts on the email (the email is a Nokogiri document at this point).
This will make the links red and bold. The problem is that it will make all the links red and bold. To target just the ones you want will take a bit of fiddling around.
# name: email-styles
# version: 0.1
after_initialize do
require_dependency 'email/styles'
Email::Styles.register_plugin_style do |doc|
doc.css('a').each do |element|
element['style'] = "color:red; font-weight:bold;"
end
end
end
You’ll need to restart Sidekiq to see the change.