Your $objMail was probably undefined when you use Win32::OLE-> Do you have tested with WIN32::OLE ? (case sentivity...) is this code work on another machine ? Yves
-----Message d'origine----- De: Samantha [mailto:[EMAIL PROTECTED]] Date: vendredi 15 f�vrier 2002 20:03 �: [EMAIL PROTECTED] Objet: sending mails with CDONTS I�ve been trying to use some code I saw in previous mails to send a mail using win32::OLE. My OS is Win XP and I have IIS 5.0 installed. #!/usr/bin/perl use WIN32::OLE; $from="mymail\@myhost.com"; $to = "othermail\@otherhost.com"; $subject = "Test"; $body = "This is a test"; my $objMail = Win32::OLE->new("CDONTS.Newmail"); $objMail->Send($from,$to,$subject,$body,CdoHigh); And this is the CGI error. Can't call method "Send" on an undefined value at ... I�m a begginer in these matters and I don�t know what the problem could be. Thank you in advance, Maria _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
