in reply to Mail with Outlook

Only one comment:
The body should be large, and you are passing to the function (using the stack) all the parameters.
I would pass it using references

Example:
outlook_mailer(\%mail);

In the sub, you obtain the parameters dereferencing the reference
my $mail_props = shift;
and then obtain the parameters with
$mail_props->{'to'}
See perldoc perlref for details

Hopes
$_=$,=q,\,@4O,,s,^$,$\,,s,s,^,b9,s, $_^=q,$\^-]!,,print

Replies are listed 'Best First'.
Re: Re: Mail with Outlook
by jgamble (Pilgrim) on Jan 19, 2002 at 09:26 UTC
    Yup, you're right, i should have written this using a reference for the $mail_props variable. Thanks. -john