sensu-plugins-mailer HTML support

Hi Sensu Experts,

We are using Sensu for monitoring purposes, but we are interested in sending HTML emails with mailer plugin. I’m not an expert in Ruby, but I’ve seen the handler-mailer.rb code and I found this:

https://github.com/sensu-plugins/sensu-plugins-mailer/blob/master/bin/handler-mailer.rb#L120-L136

In lines L120-L136 there’s a function related to the content type:

if use.casecmp(‘html’).zero?
‘text/html; charset=UTF-8’
else
‘text/plain; charset=ISO-8859-1’
end

Could you give me some clue on this? if ‘text/html’ is supported how can I send emails in HTML format?

Thanks Sensu Experts!