<p>I want to send email from a Ruby application. Is there a call in the core language to do this or is there a library I should use? What's the best way to do this?</p>

[{'answer_id': 58481, 'author': 'Pat', 'author_id': 238, 'author_profile': 'https://Stackoverflow.com/users/238', 'pm_score': 0, 'selected': False, 'text': '<p>I use the  <a href="http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html" rel="nofollow noreferrer">Net::SMTP</a> library</p>\n'}, {'answer_id': 58494, 'author': 'Mike Woodhouse', 'author_id': 1060, 'author_profile': 'https://Stackoverflow.com/users/1060', 'pm_score': -1, 'selected': False, 'text': '<p>You might also consider taking a look at the <a href="http://wiki.rubyonrails.org/rails/pages/ActionMailer" rel="nofollow noreferrer">ActionMailer</a> component that ships as part of, but is not dependent on Rails.</p>\n'}, {'answer_id': 58505, 'author': 'ujh', 'author_id': 4936, 'author_profile': 'https://Stackoverflow.com/users/4936', 'pm_score': 4, 'selected': True, 'text': '<p>If you don\'t want to use <a href="http://wiki.rubyonrails.org/rails/pages/ActionMailer" rel="nofollow noreferrer">ActionMailer</a> you can use <a href="http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html" rel="nofollow noreferrer">Net::SMTP</a> (for the actual sending) together with <a href="https://github.com/mikel/tmail" rel="nofollow noreferrer">tmail</a> for easily creating emails (with multiple parts, etc.).</p>\n'}, {'answer_id': 59285, 'author': 'pauliephonic', 'author_id': 5374, 'author_profile': 'https://Stackoverflow.com/users/5374', 'pm_score': 1, 'selected': False, 'text': '<pre><code>require \'net/smtp\'\nSMTP_SERVER = \'mailserver01\' #change to your server\n\ndef send_emails(sender_address, recipients, subject, message_body)\n    recipients.each do |recipient_address|\n        message_header =\'\'\n        message_header &lt;&lt; "From: &lt;#{sender_address}&gt;\\r\\n"\n        message_header &lt;&lt; "To: &lt;#{recipient_address}&gt;\\r\\n"\n        message_header &lt;&lt; "Subject: #{subject}\\r\\n"\n        message_header &lt;&lt; "Date: " + Time.now.to_s + "\\r\\n"\n        message = message_header + "\\r\\n" + message_body + "\\r\\n"\n        Net::SMTP.start(SMTP_SERVER, 25) do |smtp|\n            smtp.send_message message, sender_address, recipient_address\n        end\n    end\nend\nsend_emails(\'sender@domain.com\',[\'recip1@test.com\', \'recip2@other.com\'],\'test Email\',"Hi there this is a test email hope you like it")\n</code></pre>\n'}, {'answer_id': 84793, 'author': 'ChrisInEdmonton', 'author_id': 16266, 'author_profile': 'https://Stackoverflow.com/users/16266', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.rfc20.org/rubymail/" rel="nofollow noreferrer" title="RubyMail">RubyMail</a> is an email handling library for Ruby.</p>\n'}, {'answer_id': 265533, 'author': 'jonnii', 'author_id': 4590, 'author_profile': 'https://Stackoverflow.com/users/4590', 'pm_score': 0, 'selected': False, 'text': '<p>I know this is a late answer to this, but this was just released:</p>\n\n<p><a href="http://adam.blog.heroku.com/past/2008/11/2/pony_the_express_way_to_send_email_from_ruby/" rel="nofollow noreferrer">http://adam.blog.heroku.com/past/2008/11/2/pony_the_express_way_to_send_email_from_ruby/</a></p>\n\n<p>Might be useful.</p>\n'}]
['https://Stackoverflow.com/questions/58478', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/381/']