Thats correct, im struggling on mail when i use mail gem. I already posted an query on :
http://groups.google.com/group/mail-ruby but no relies. I posted on ruby forum also, but no replies. Let me try to do it using stackoverflow. By the way zeljko, im still not able to get the unread emails if i use Mail.all, mail.first or mail.,last. Bhavesh On Apr 25, 9:54 am, Chuck van der Linden <[email protected]> wrote: > On Tuesday, April 24, 2012 4:31:14 PM UTC-7, Bhavesh wrote: > > > Hi chuck, > > > You are still not getting me. > > > Im am using Watir, and an webapplicaiton. > > > From my application, i can send notification. > > > Once notification is received in Outlook Inbox, i have to get the > > links in that emails. > > > I automated using Watir till i can send the notification on an web > > application. > > > I have written code to get emails also from the Outlook in watir > > script [which i have pasted in last thread]. > > Thanks for providing that detail, if you had started out saying something > to that effect then what you were trying to do would have been a lot > clearer, instead of just presenting us with some code that has nothing to > do with watir and no context to how this relates to work you are doing in > watir. That little bit of background, a single sentence such as "I am > generating an email via automating a web app with watir, but now I need to > validate the content of the resulting mail, especially links within the > mail body" would have greatly helped people to understand the overall > nature of the problem. Then you could go into the fact you are getting a > hash value and not the link and does anyone know how you would get the > link, or iterate the hashes to get the info you need. > > Still, and as Zeljko has explained also, this is really not the forum for > help with automating outlook or pop3 mail access. I now understand you are > using watir to send the mail, but your challenge at this point, how to > receive and verify the mail contents, has little to do with watir unless > you were using something like OWA, Gmail or another web interface to an > email system to handle the mail. > > I would strongly suggest moving this to StackOverflow, and putting some > appropriate tags on the question. You can post a link to it here so anyone > else with a similar problem (or time to assist you) can follow over to it. > You are far more likely to find more folks with experience dealing with > email via ruby, and get some good answers to your question (and the code > can be properly formatted, questions edited and updated as well as > answers). You can also post a link to the question on the google group > that deals with the mail gem. I really think that might be a better way > for you to get this issue resolved. At the very least you are far more > likely to find people with experience doing that kind of coding, than > asking the question here in the Watir group since at this point your > challenge is not really with watir. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
