1. Home
  2. Computing & Technology
  3. Ruby

How to Send Email with Ruby

By Amanda & Michael Morin, About.com

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

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

Easy ways to connect two computers for networking purposes. 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.