1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

How to Send Email with Ruby

By

The net/smtp library that comes with Ruby can be used to send email messages, but there a couple of important things to note before you begin.

  1. You will need access to an SMTP relay server, which is typically provided by your ISP.
  2. The library is a low-level library, meaning it doesn't simply "send mail," but that you'll have to know a little bit about email and the SMTP protocol in order to use it effectively. If you're not comfortable with that, there are alternate options such as RubyMail and TMail. Both provide more comprehensive and friendly interfaces for sending and receiving email messages.

  1. About.com
  2. Technology
  3. Ruby
  4. Tutorials
  5. How to Send Email with Ruby on Rails

©2014 About.com. All rights reserved.