I have a ruby program that is supposed to send e-mails, and the exact code worked before, but won't work now. Can anyone help me understand why? Here's the code:
STDOUT.sync = true
require 'net/smtp'
require 'rubygems'
require 'hpricot'
require 'open-uri'
Net::SMTP.start('smtp-server.cfl.rr.com', 25) do |smtp|
smtp.open_message_stream('MBECK88@cfl.rr.com', ['mbeck@knights.ucf.edu']) do |f|
f.puts 'From: matt'
f.puts 'To: mbeck@knights.ucf.edu'
f.puts send
end
end