Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
POP email with SSL
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Poornima Dhanasekar, post: 4631841"] Hello, I want to get my inbox messages from my account.i tried wit pop.i can't get my inbox messages.i got "undefined method `enable_ssl' for Net::POP3:Class (NoMethodError)" error.my code is Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE) conn = Net::POP3.new('pop.gmail.com',110) conn.start('[email]poornima.dgl@gmail.com[/email]','praveena1') conn.mails.each do |pop| msg = pop.mails[0] # Print the 'From:' header line puts msg.header.split("\r\n").grep(/^From: /) # Put message to $stdout (by calling <<) puts "\nFull message:\n" msg.all($stdout) end [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
POP email with SSL
Top