Hi,

I am trying to read my mails from Microsoft Outlook 2010, am able to read the mail counts but while fetching the mails am getting error.

use Email::Folder::Exchange::EWS; use URI; use LWP::UserAgent; my $folder = Email::Folder::Exchange::EWS->new('https://owa.webmail.co +m', 'domain\user_name', 'password'); my $unread_count = $folder->unread_count(); my $total_count = $folder->total_count(); my $child_folders = $folder->child_folder_count(); my $folder_name = $folder->display_name(); print "Unread MSG Count -- $unread_count\n"; print "Total MSG Count -- $total_count\n"; print "child folders -- $child_folders\n"; print "Folder Name -- $folder_name\n"; for my $message ($folder->messages) { print $message->header('Subject')."\n"; my $txt = $message->body; print "$txt\n"; }

Error as below

Unread MSG Count -- 0 Total MSG Count -- 4028 child folders -- 2 Folder Name -- Inbox The server cannot service this request right now. Try again later. at +C:/Strawbe rry/perl/vendor/lib/Email/Folder/Exchange/EWS.pm line 254.

Thanks


In reply to Unable to Read Mails from Mailbox - Exchange by ryalagikar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.