943,202 Members | Top Members by Rank

Ad:
  • Ruby Discussion Thread
  • Unsolved
  • Views: 853
  • Ruby RSS
Jul 3rd, 2010
0

Tmail and mail server connection problems

Expand Post »
So far today has been one of those days where I can't get anything to work. For the past three hours, I have been trying to require tmail library, and trying to connect to my mail server with imap. Here is a brief session illustrating my frustration.


Ruby Syntax (Toggle Plain Text)
  1. irb(main):001:0> require 'net/smtp'
  2.  
  3. => true
  4. irb(main):002:0> require 'rubygems'
  5. => false
  6. irb(main):003:0> require 'hpricot'
  7. => true
  8. irb(main):004:0> require 'open-uri'
  9. => true
  10. irb(main):005:0> require 'net/imap'
  11. => true
  12. irb(main):006:0> require 'tmail'
  13. LoadError: no such file to load -- tmail
  14. from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
  15. from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
  16. from (irb):6
  17. from ^C:0
  18. irb(main):007:0> $ sudo gem install tmail
  19. Errno::EBADF: Bad file descriptor
  20. from (irb):7:in `write'
  21. irb(main):008:0> imap = Net::IMAP.new('smtp-server.cfl.rr.com')
  22. Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2)
  23. from C:/Ruby/lib/ruby/1.8/net/imap.rb:886:in `initialize'
  24. from C:/Ruby/lib/ruby/1.8/net/imap.rb:886:in `open'
  25. from C:/Ruby/lib/ruby/1.8/net/imap.rb:886:in `initialize'
  26. from (irb):8:in `new'
  27. from (irb):8
  28. from ^C:0
  29. irb(main):009:0> imap = Net::IMAP.new('pop-server.cfl.rr.com')
  30. Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2)
  31. from C:/Ruby/lib/ruby/1.8/net/imap.rb:886:in `initialize'
  32. from C:/Ruby/lib/ruby/1.8/net/imap.rb:886:in `open'
  33. from C:/Ruby/lib/ruby/1.8/net/imap.rb:886:in `initialize'
  34. from (irb):9:in `new'
  35. from (irb):9
  36. from ^C:0
  37.  

I have Ruby 186-27, and I have downloaded a Tmail .gem, .tgz, AND a zip folder, all of which I have put in my rubygems folder. Why won't Tmail load, and why can't I connect to my email server? pop-server.cfl.rr.com is my the outgoing server, and smtp-server.cfl.rr.com is the incoming server. PLEASE help, all I am trying to do is be able to read incoming emails. I have already written code that sends emails, so I know I can write something that receives emails. Any advice would be GREATLY appreciated

Thanks,
Matt
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mattitude is offline Offline
10 posts
since Jan 2010
Jul 4th, 2010
0
Re: Tmail and mail server connection problems
I am not familiar with Tmail, but I am familiar with the issue of those who try to program Ruby on Rails in Windows. You will have great pains and woes trying to program in Windows(trust me, I already made that mistake.) What you need to do is make a partition or designate an entire drive for Ubuntu which is an amazing free Operating System which is great for RoR developing purposes and personal use. I use it mainly for developing, but I may start to use it more and more for personal stuff. Please read the forums sticky on RoR. You can always submit an issue over at github about tmail. I am assuming that's where that gem is hosted, since basically almost every gem is hosted at Github.
Reputation Points: 48
Solved Threads: 11
Posting Pro
tiger86 is offline Offline
540 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Ruby Forum Timeline: Ruby E-mail Fail
Next Thread in Ruby Forum Timeline: wrong number of argument argument error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC