Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock errors
Message
De
06/02/2004 04:19:30
 
 
À
06/02/2004 03:46:33
Barry Newton
Plan International
London, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00874735
Message ID:
00874740
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform