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
No comments:
Post a Comment