1. Home
  2. Computing & Technology
  3. Ruby

How to Send Email with Ruby

By , About.com Guide

1 of 5

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.

Explore Ruby
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Tasks & Scripts
  5. How to Send Email with Ruby on Rails

©2009 About.com, a part of The New York Times Company.

All rights reserved.