Simple Email Send Function In Ruby
If you need to send an e-mail in ruby, this little function works well.
Posted on Tuesday, Aug 1, 2006
If you need to send an e-mail in ruby, this little function works well.
7 Comments
Please feel free to look at the HTML and stylesheets.
but it give me error like
Address family not supported by protocol - socket(2)
/opt/lampp/lib/ruby/1.8/net/protocol.rb:206:in `initialize'
/opt/lampp/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
/opt/lampp/lib/ruby/1.8/timeout.rb:56:in `timeout'
/opt/lampp/lib/ruby/1.8/timeout.rb:76:in `timeout'
/opt/lampp/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
/opt/lampp/lib/ruby/1.8/net/smtp.rb:393:in `do_start'
/opt/lampp/lib/ruby/1.8/net/smtp.rb:378:in `start'
/opt/lampp/lib/ruby/1.8/net/smtp.rb:316:in `start'
app/controllers/hello_controller.rb:15:in `deliverMail'
I have to add 2 things here.. We need to install postfix (not sure what to install in windows machine) and add require 'net/smtp' ..
Hope the problem with Abi is she might not have installed postfix.
Leave a Comment