Hi Chuck,

I don't expect people to write an code for me.

I have already posted the code which i am using in my script in my
first Post.

Code is :

          outlook = WIN32OLE.new('Outlook.Application')
          mapi = outlook.GetNameSpace('MAPI')
          folders = mapi.Folders
          new_messages = 0

          #Getting email body/Links of unread email
          inbox = mapi.GetDefaultFolder(6)
          inbox.Items.each do |message|
           #puts message.body if message.Unread
            puts message.Links if message.Unread

This is all i am doing.

And it is working too....

I have Outlook opened and it is retriving first unread emial which i
want.

So i have written an code and it is working.

Question is, when i try to retrive email body, it works and retrive it
without error.

But when i try to retrive links which are in email, it shows Hash
values instead of actual links.

Here is the output :

#<WIN32OLE:0x171bda8>
.
Finished in 0.812500 seconds.


So i have a doubt, im not clear and therefore im putting my question.
i dont expect anybody to write me a code.

I clearly written in  my Post that im not using "mail" gem, im doing
normal stuf related with emails.

I hope that explains my concerns.

thanks
bhavesh



On Apr 24, 2:14 pm, Chuck van der Linden <[email protected]> wrote:
> Then show us some example HTML and some code that is using watir that shows
> what you are trying to do.
>
> I have for example zero idea what mail system you are even trying to
> access, you've given us pretty much zero info other than the code you want
> to replace (which itself has very little info we could infer).
>
> if you are expecting the folks here to write your code for you, that's not
> going to happen.  we'll provide guidance, advice, and try to get you
> unstuck etc.  but we're not going to port code from some other gem over to
> use watir starting from nothing.  Nearly all of us have our hands full
> doing our own work, and little time to do someone elses work for free.
>
> If you have not already done so, spend some time in the watir 
> tutorialhttp://wiki.openqa.org/display/WTR/Tutorial or with the Watir 
> Bookhttp://watir.com/book/(which tends to be more current than the wiki
> tutorial) to get you started.
>
>
>
>
>
>
>
> On Tuesday, April 24, 2012 1:49:14 PM UTC-7, Bhavesh wrote:
>
> > Yes, im doing this in watir.
>
> > Instead of using mail gem, im using this method to retrive emails.
>
> > I dont want to install gem "mail".
>
> > I need to know how to get values  instead of these hash values.
>
> > Bhavesh
>
> > On Apr 24, 1:36 pm, Chuck van der Linden <[email protected]> wrote:
> > > The mail gem has it's own google group, the link is in the readme  look
> > > here:  https://github.com/mikel/mail/
>
> > > That would be the better place to ask your question
>
> > > On Tuesday, April 24, 2012 1:32:00 PM UTC-7, Chuck van der Linden wrote:
>
> > > > I see no watir in your code below, why are you posting this question
> > > > here?
>
> > > > On Tuesday, April 24, 2012 1:28:08 PM UTC-7, Bhavesh wrote:
>
> > > >> Hi,
>
> > > >> Im trying to access links inside an email.
>
> > > >> Im am not using Gem “mail”.
>
> > > >> Im doing very simple stuff here.
>
> > > >> Just getting unread email from the mailbox and then getting the links
> > > >> present inside that email.
>
> > > >> When I try to get email bocdy, I get without error.
>
> > > >> But similarly when I try to get links present inside that email, it
> > > >> shows Hash  value instead of actual links.
>
> > > >> Code is :
>
> > > >>           #Getting email body/Links of unread email
> > > >>           inbox = mapi.GetDefaultFolder(6)
> > > >>           inbox.Items.each do |message|
> > > >>            #puts message.body if message.Unread
> > > >>             puts message.Links if message.Unread
>
> > > >> What I have to change to get the actual links.
>
> > > >> Bhavesh

-- 
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]

Reply via email to