Send a Simple HTML Email Using Ruby
Most recently in my Ruby endeavors, I needed an easy way to send simple HTML emails. I came up with what I think to be the most concise way of doing so. From the example I’ve given below you should be able to copy + paste and have something running in minutes, if not seconds. It simply leverages the lovely built-in Ruby class Net::SMTP. No need to install any additional RubyGems or anything else. Enjoy and have fun sending emails from your scripts, programs or anything else.
Tweet
Loading Comments...