in reply to Re: Use perl to create outlook .msg file
in thread Use perl to create outlook .msg file

Hi Anonymous Monk,

Thanks for your time.

$message->save; saves it in the Drafts folder within Outlook, but I need the program to create a file on the harddrive as a physical file (.msg).

Did not find any useful code snippets on the duckduckgo search engine either.
  • Comment on Re^2: Use perl to create outlook .msg file

Replies are listed 'Best First'.
Re^3: Use perl to create outlook .msg file
by kean (Sexton) on Mar 16, 2012 at 12:32 UTC
    The solution is: $message->SaveAs('C:\test.msg');
      I am getting the following error message:- Unknown sub Mail::Outlook::Message::SaveAs
        $message->{message}->Save...
Re^3: Use perl to create outlook .msg file
by Anonymous Monk on Jan 07, 2012 at 22:44 UTC

    Um, go to MSDN, find the message object , look for save, save_to, etc, etc