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

Reply via email to