Hi all,

         I have some problem within using Perl and SDK, bellows is a block of simple perl code:

       use Win32::OLE;        # use existing instance if Excel is already running

   

      

                    $ex = Win32::OLE->new('IMailAPI.IMailServer.1')

                    or die "Oops, cannot start Imail API";

                    

        $ex->Connect('localhost','menei','password');

       

        undef $ex;

I want to use Win32::OLE in perl to connect Imail server with Imail API, but failed, see error message in bellows:

 

OLE exception from "IMailAPI.IMailServer.1":

 

Failed to get host entry.

 

Win32::OLE(0.1603) error 0x80040001: ""

    in METHOD/PROPERTYGET "Connect" at C:\Perl\eg\Perl-2.pl line 7

 

Does anybody know how to do right way?

 

Thanks.

 

仲蔚(软件主管)

上海希柯科技发展有限公司

上海江苏路369号兆丰世贸大厦20C

电话:+8621)-52400758

传真:+8621)-52400759

电子邮件:[EMAIL PROTECTED]

在线技术咨询:http://www.cemtek.com.cn/bbs

 

Reply via email to