On Thu, Jun 14, 2001 at 08:30:14AM +0200, Adrienne Kotze wrote:
> $mailer = Mail::Mailer->new ("smtp", "smtp.mydomain.com") ;
This should be:
$mailer = Mail::Mailer->new("smtp", Server => "smtp.mydomain.com");
This is the cause of your warning.
> $mailer->open ({ From => 'me <[EMAIL PROTECTED]>',
> To => 'you <[EMAIL PROTECTED]>',
> Subject => 'Test',
> }) ;
This is the correct call.
> With the second and third one, I get this error:
> Can't use string ("From") as a HASH ref while "strict refs" in use at
> lib/Mail/Mailer.pm line 285.
Notice the warning is reporting on a line in Mail/Mailer.pm. If your hash
had been the incorrect one, the warning would've shown a line number from
your script.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--