Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Adding custom header to Mail::Outlook::Message

by maskull (Novice)
on Mar 13, 2017 at 09:52 UTC ( [id://1184382]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found