Sign in to follow this  
Followers 0
fctd

_INetSmtpMail on XP embedded machine

7 posts in this topic

Hello,

I have seen at this site, how to send a mail with INetSmtpMail(). I tried this on a XP machine and it worked perfectly.

Only the script has to run on a XP embedded machine. When i tried this, the script came with an error.

Error: Variable must be of type "Object".

The error is displayed after the second line is executed.

Func _INetSmtpMailCom()
          MemoWrite("1") ;for monitoring
     Local $objEmail = ObjCreate("CDO.Message")
          MemoWrite("2") ;for monitoring
     $objEmail.From = '"' & $FromName & '" <' & $FromAddress & '>'    ; After this line, the error is displayed
          MemoWrite("3") ;for monitoring
     $objEmail.To = $ToAddress

Am I missing a library or something in XPE? :)

Thanks.


[list][font="Century Gothic"]If nothing is certain, everything is possible.[/font][/list][font="Century Gothic"]Experience is something you get, just after you need it.[/font]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Looks to me like you don't have CDO installed on the XPE:

http://www.microsoft.com/downloads/details...f2-0a110307611e

Edit:

You may also want to look at:

http://support.microsoft.com/kb/910360

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Looks to me like you don't have CDO installed on the XPE:

http://www.microsoft.com/downloads/details...f2-0a110307611e

Edit:

You may also want to look at:

http://support.microsoft.com/kb/910360

SmOke_N,

It could be, because the xpe is installed on a Thin Client. There is no outlook or whatever installed.

When I looked at the support site, the CDO objects/files are normally installed with product installations.

http://support.microsoft.com/kb/171440

Thanks for the reaction and the link. :)

I let you know if it works after installing.

Greetings.


[list][font="Century Gothic"]If nothing is certain, everything is possible.[/font][/list][font="Century Gothic"]Experience is something you get, just after you need it.[/font]

Share this post


Link to post
Share on other sites

..... :)

Can't get the CDO on the XPE.

The XPE is installed on an older thin client.

XPE 2002.

Thin Client 256MB ram.

Can't run or install .MSI files.

Manually adding the CDO, didn't work.

I think I need a Thin Client with XP installed and a little bit more memory.

Any suggestions? :o

Greetings and thanks.


[list][font="Century Gothic"]If nothing is certain, everything is possible.[/font][/list][font="Century Gothic"]Experience is something you get, just after you need it.[/font]

Share this post


Link to post
Share on other sites

Windows PE caused me similar problems. I was able to track down two DLL's I needed to add to Windows PE to get it to work, cdosys.dll and msoert2.dll then ran: regsvr32 cdosys.dll to register CDO and now I can send from PE without an issue, might need to to the came with XPE, get the files from a full XP machine.

Share this post


Link to post
Share on other sites

@IcemanND,

Unfortunately, it didn't work.

I got this error message.

LoadLibrary("cdosys.dll")failed - A dynamic link library (DLL) initialization routine failed.

Greetings.


[list][font="Century Gothic"]If nothing is certain, everything is possible.[/font][/list][font="Century Gothic"]Experience is something you get, just after you need it.[/font]

Share this post


Link to post
Share on other sites

Look in that dll's imports to see if it depends on other dlls. That must be why LoadLibrary initialization failed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0