How to send emails from a Ruby app via Net::SMTP

With Ruby, you can make use of many helpful gems to let your brand-new app send emails. The most common options are ActionMailer and Mail. But what if you want to use pure Ruby to implement the delivery of transactional…