Thursday, June 21, 2012

my worth STRIVING for.

married & hv kids with her. buy house 4 mama. buy house 4 abah & look after him. my family is my everything my love is my requirement

Wednesday, June 6, 2012

rails gmail pop3 ssl reading email

require 'net/pop'
Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE)  
Net::POP3.start('pop.gmail.com', 995, username, password) do |pop|  
  if pop.mails.empty?  
    puts 'No mails.'  
  else  
    pop.each_mail do |mail|  
      p mail.header  
      p mail.pop  
    end  
  end  
end