Re: Help needed with setting up a SMTP connection

2001-06-14 Thread Michael Fowler
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

Re: Help needed with setting up a SMTP connection

2001-06-14 Thread Me
> So it would appear that the Cookbook has got a typo. Sorta. You might want to read in the deja thread I referred you to. [A thread from 1999. And I didn't find a correction in the Cookbook's errata (though that could be because the searching process is tedious and I wasn't motivated to keep at

Re: Help needed with setting up a SMTP connection

2001-06-14 Thread Adrienne Kotze
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

Re: Help needed with setting up a SMTP connection

2001-06-14 Thread Michael Fowler
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 PROTE

Re: Help needed with setting up a SMTP connection

2001-06-14 Thread Me
Can't help much, but, fwiw: These two are definitely completely wrong: > $mailer->open ( 'From' => 'me <[EMAIL PROTECTED]>', > 'To' => 'you <[EMAIL PROTECTED]>', > 'Subject' => 'Test' > ) ; > > $mailer->open ( From => 'me <[EMAIL PROTECTED]>', >

Help needed with setting up a SMTP connection

2001-06-13 Thread Adrienne Kotze
Hi there, I'm trying to setup a SMTP connection to a server. From the Perl Cookbook I got the following: 1) To start a new connection: $mailer = Mail::Mailer->new ("smtp", "smtp.mydomain.com") ; 2) To open a connection (this is were the problem is I think), I tried the following three: $mail