On Thu, Jun 14, 2001 at 11:25:51AM +0200, Adrienne Kotze wrote:
> Michael Fowler wrote:
> > 
> > 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");
> 
> Thanx, this works great. So it would appear that the Cookbook has got a
> typo.

It could be an example from an older version of Mail::Mailer.


> Just one last thing: If I move my code to ActiveState on NT, I get the
> following:
> 
> Invalid argument at lib/Mail/Mailer.pm line 270.

Line 270 in Mail::Mailer v1.20 is:

    (defined($exe) && open($self,"|-"))

That particular form of open is not supported in Windows.  You could try
different versions of Mail::Mailer, or you may have to move to something
else.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to