Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winsock errors
Message
From
06/02/2004 04:19:30
 
 
To
06/02/2004 03:46:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00874735
Message ID:
00874740
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform