shouldn't your smtp parameter have the full hostname? You should also check that your server is accepting smtp connections from the user and machine your are running this script on.
-----Original Message----- From: murphy, daniel (BMC Eng) [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 9:51 AM To: '[EMAIL PROTECTED]' Subject: Mail::Sender on WinNT - can't connect I've been wanting to send mail from some of my scripts, so I thought I'd see how to get it to work. I chose to use Mail::Sender and am running Perl 5.005_03 from ActiveState build 522 (I know, it's old) on WinNT. When I run this simple test script: use Mail::Sender; ref ($sender = new Mail::Sender {smtp => 'srmontana', from => '[EMAIL PROTECTED]'}) or die "$Mail::Sender::Error\n"; ref ($sender->MailMsg({to => '[EMAIL PROTECTED]', subject => 'Here is the file', msg => "I'm sending you the list you wanted."})), or die "$Mail::Sender::Error\n"; ------------------ I get, connect() failed: Unknown error I'm not sure that this is a Perl question as much as it's a WinNT Exchange Server, corporate environment and configuration question. This is a large company and I use an Outlook email client. Looking at the Tools:Services panel of Outlook, I got 'srmontana' as the name of the Exchange server. I have also tried various combinations of these lines: client => 'MURPHY5344A', from => 'murphy, daniel (BMC Eng)' ..... but, to no avail - I still get the connect() error. I know the name 'srmontana' is being resolved correctly because I printed out the smtpaddr and got the correct IP address. Do things look right? Is there some type of authentication, (userid, password, etc.) that's taking place? There must be, right? TIA, Dan Murphy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]