ryalagikar has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to Read Mails from Mailbox - Exchange
by poj (Abbot) on Mar 23, 2016 at 12:17 UTC | |
by ryalagikar (Novice) on Mar 24, 2016 at 05:42 UTC |