in reply to Re: Adding custom header to Mail::Outlook::Message
in thread Adding custom header to Mail::Outlook::Message

Thanks. Sadly that gives me this:
X-ICCategory 2 Can't call method "SetProperties" on an undefined value at .. line ..

Replies are listed 'Best First'.
Re^3: Adding custom header to Mail::Outlook::Message
by poj (Abbot) on Mar 13, 2017 at 15:43 UTC

    What does running this give

    use strict; use Win32::OLE; use Mail::Outlook; my $mail = new Mail::Outlook(); my $message = $mail->create(); my $Outlook = $message->{'outlook'}; print " Perl $] Win32::OLE Version ${Win32::OLE::VERSION} Mail::Outlook ${Mail::Outlook::VERSION}; Outlook $Outlook->{'Version'}\n";

    This is what I have

    Perl               5.016001
    Win32::OLE Version 0.1709
    Mail::Outlook      0.25;
    Outlook            14.0.0.7172
    
    poj
      Perl 5.014002
      Win32::OLE Version 0.1709
      Mail::Outlook 0.25;
      Outlook 15.0.0.4859

        I don't think I can help any more as I only have an expired trial version of Office Professional 2010. All I can suggest is record a VBA macro to do what you want and post that here. I might be able to translate that to Perl.

        poj