Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Perl to read EMBEDDED Outlook email?
October 29, 2009, 8:41 pm
rate this thread
If you have an Outlook email that includes an attached email, how can
you use Perl to read/parse that embedded email? I tried to use
WIN32::OLE, and I know you can get the mail body this way:
Now this email also has an attached email and I need to get its mail
body. So I used following line to get the attached email:
my $attach = $folder->Items->Item($i)->Attachments();
After this line runs the $attach is that embedded email (and I can
save the $attach to a text file), but how to open it to get its email
I tried following but none of them worked:
$mailbody=$attach->Body; # not working
$mailbody=$attach->Items->Item(1)->Body; # not working
$mailbody = $folder->Items->Item($i)->Attachments()->Body; # not
It'll be highly appreciated if somebody tells me where is wrong or
where to find some sample codes.
- » FAQ 9.2 My CGI script runs from the command line but not the browser. (500 Server Error)
- — Next thread in » PERL Discussions