fctd Posted January 5, 2009 Share Posted January 5, 2009 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 = $ToAddressAm 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] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 5, 2009 Moderators Share Posted January 5, 2009 (edited) Looks to me like you don't have CDO installed on the XPE:http://www.microsoft.com/downloads/details...f2-0a110307611eEdit:You may also want to look at:http://support.microsoft.com/kb/910360 Edited January 5, 2009 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. Link to comment Share on other sites More sharing options...
fctd Posted January 5, 2009 Author Share Posted January 5, 2009 Looks to me like you don't have CDO installed on the XPE:http://www.microsoft.com/downloads/details...f2-0a110307611eEdit:You may also want to look at:http://support.microsoft.com/kb/910360SmOke_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/171440Thanks 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] Link to comment Share on other sites More sharing options...
fctd Posted January 5, 2009 Author Share Posted January 5, 2009 ..... 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? 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] Link to comment Share on other sites More sharing options...
IcemanND Posted February 10, 2009 Share Posted February 10, 2009 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. Link to comment Share on other sites More sharing options...
fctd Posted February 13, 2009 Author Share Posted February 13, 2009 @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] Link to comment Share on other sites More sharing options...
Inverted Posted February 13, 2009 Share Posted February 13, 2009 Look in that dll's imports to see if it depends on other dlls. That must be why LoadLibrary initialization failed. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now