in reply to Mail & Win32
if ( my $outlook = Win32::OLE->GetActiveObject('Outlook.Application')) +# connect to outlook application { # next line for debug only # print "\nSuccessfully connected to existing outlook & email"; + if (defined ($outlook->ActiveInspector())) { my $activeEmail= $outlook->ActiveInspector()->{CurrentItem}; if ($activeEmail->{Class}==olMail) # if we're dealing with an + email item { print "ok it's a mail"; } } }
Heureux qui, comme Ulysse, a fait un beau voyage
Ou comme celui-là qui conquit la Toison,
Et puis est retourné plein d'usage et raison,
Vivre entre ses parents le reste de son âge!J. du Bellay, poëte angevin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Mail & Win32
by Mitch (Sexton) on Jun 27, 2003 at 17:16 UTC | |
by mr_mischief (Monsignor) on Jun 27, 2003 at 18:16 UTC | |
by Mitch (Sexton) on Jun 27, 2003 at 19:02 UTC |