Send email by markdown text.
gem install sendmark
mail = Sendmark.new(
to: ["to@example.com"],
from: "from@example.com",
subject: "subject",
css: "h1 { color: #000000; }",
markdown: "# H1"
)
mail.delivery_method(:smtp, address: "smtp@example.com", port: 25)
mail.deliver
The gem is available as open source under the terms of the MIT License.