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: $mailer->open ({ From => 'me <[EMAIL PROTECTED]>', To => 'you <[EMAIL PROTECTED]>', Subject => 'Test', }) ; $mailer->open ( 'From' => 'me <[EMAIL PROTECTED]>', 'To' => 'you <[EMAIL PROTECTED]>', 'Subject' => 'Test' ) ; $mailer->open ( From => 'me <[EMAIL PROTECTED]>', To => 'you <[EMAIL PROTECTED]>', Subject => 'Test' ) ; With the first one, I get this error: Odd number of elements in hash assignment at lib/Mail/Mailer/smtp.pm line 13. Died at lib/Mail/Mailer.pm line 270. 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. 3) Then I close my connection with: $mailer->close () ; Could someone please point out my error here ? Thanx. -- Adrienne Kotze - Technical Consultant - Sintrex Integration Service Mobile: +27 83 269 6725 - Facsimile: +27 83 8 269 6725 mailto:[EMAIL PROTECTED]