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.
- You will need access to an SMTP relay server, which is typically provided by your ISP.
- 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.