lib/mail_tester.rb in mail_tester-0.0.1 vs lib/mail_tester.rb in mail_tester-0.0.2
- old
+ new
@@ -12,11 +12,11 @@
@email = email
@password = password
@realname = realname
@user, @domain = @email.split('@')
- @pop3_hostname = 'pop.' + @domain
+ @pop3_hostname = 'pop3.' + @domain
@smtp_hostname = 'smtp.' + @domain
@pop3_server = Net::POP3.new(@pop3_hostname)
@smtp_server = Net::SMTP.start(@smtp_hostname, 587)
end
@@ -84,10 +84,10 @@
msgstr = ''
msgstr += "From: #{@realname} <#{@email}>\n"
msgstr += "To: #{@realname} <#{@email}>\n"
msgstr += "Subject: test message\n"
- msgstr += "Date: Sat, 23 Jun 2001 16:26:43 +0900\n"
+ msgstr += "Date: Sat, 23 Jun 2020 16:26:43 +0900\n"
msgstr += "#{message_id}\n"
msgstr += "\n"
msgstr += "This is a test message."
@smtp_server.send_message msgstr, @email, @email