Forum: Ruby checking emails with ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E6fd5314e74591a0b4f26e58aca5cb91?d=identicon&s=25 Erika (Guest)
on 2008-11-04 08:52
(Received via mailing list)
Hi,

Is there a possibility in ruby or with a ruby extension for checking
emails?

I'm thinking something like the following:
- ruby accesses a site and after a button is pressed an email is send to
an address
- ruby opens the mail handler (Outlook express / Thunderbird) and waits
that the email is downloaded
- opens the email (the email can be identified by it's subject)
- check if some text can be found in the email

Is this possible?

Thank you.

Br,
Erika
71770d043c0f7e3c7bc5f74190015c26?d=identicon&s=25 gf (Guest)
on 2008-11-04 09:11
(Received via mailing list)
It's possible, depending on the type of email account, and can be done
without relying on an external application. Check into the net/pop3
and net/imap core libraries.

http://www.ruby-doc.org/core/classes/Net/POP3.html
http://www.ruby-doc.org/core/classes/Net/IMAP.html

The examples for either are good starting points.
253bccb1f1236c92ca27edab089f74df?d=identicon&s=25 Sarcar, Shourya C (GE Healthcare) (Guest)
on 2008-11-04 09:11
(Received via mailing list)
________________________________

  From: Erika [mailto:geagneske83@yahoo.com]
  Sent: Tuesday, November 04, 2008 1:20 PM
  To: ruby-talk ML
  Subject: checking emails with ruby



    Hi,

  Is there a possibility in ruby or with a ruby extension for
checking emails?

  I'm thinking something like the following:
  - ruby accesses a site and after a button is pressed an email is
send to an address
  - ruby opens the mail handler (Outlook express / Thunderbird)
and waits that the email is downloaded
  - opens the email (the email can be identified by it's subject)
  - check if some text can be found in the email



I believe it will be easier if you choose to (and can) avoid
Outlook/Thunder and read the mails via Ruby itself.
Reading mails from a POP/IMAP server is quite easy.
(For POP3)
http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc...
This topic is locked and can not be replied to.