Hi Barry!
This is not the answer to the WinSock error but an alternative.
I'm sending my eMails using Shell32 - here's the code.
PROCEDURE sendMail(cRecip as String,cSubject as String,cBody as String,cAttach as String) as VOID
DECLARE INTEGER ShellExecute IN shell32 integer hWnd,string lpOperation,string lpFile,string lpParameter,;
string lpDirectory,integer nShowCmd
LOCAL lcOperation as String,lcFile as String
lcOperation="open"
lcFile="mailto:"+ALLTRIM(cRecip)+"?subject="+ALLTRIM(cSubject)+"&body="+ALLTRIM(cBody)+"&attach="+ALLTRIM(cAttach)
ShellExecute(0,lcOperation,lcFile,"","",1)
ENDPROC
HTH
>hi
>
>i'm trying to send an smtp e-mail but having no luck.
>
>i'm using the code from the fox.wikis.com site that uses mswinsck.
>
>first i got the error 'class definition mswinsock.winsock' is found.
>then after receiving a reply on the wiki, i registered the mswinsck.ocx class using 'regsvr32 mswinsck.ocx' successfully, but now i get the message 'ole error code 0x80040112: appropriate license for this class not found'.
>
>any further help greatly appreciated.
>
>barry
robert.oh.