Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MAPI.DLL directly
Message
 
 
À
26/07/2001 11:48:17
Barry Newton
Plan International
London, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00535806
Message ID:
00536748
Vues:
12
Take a look at http://www.vbtt.com/tips/send_a_mail_message_using_the_mapi_dll.html

>Hello
>Maybe I can try a different tactic to my other thread. I used the following code (from Q102467) to send an email from FPW26 which works great, but I don't want the dialogue box that appears to address it and then send it. I understand I could use MAPIAddress to achieve this but have no idea on how to use this function of MAPI.DLL from FPW26 and cannot find any references elsewhere.
>Anyone used this method before?
>TIA
>Barry
>
>SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE
> GetSysDir = RegFn("GetSystemDirectory","@CI","I")
> bigstr = REPLICATE(chr(0),144) &&creates a big string
> retlen = CallFn(GetSysDir, @bigstr,144)
> winsys = LEFT(bigstr,retlen)
> SendMail=RegFn("MAPISendDocuments","L@C@C@CL", ;
> "L", winsys+"\MAPI.DLL")
> T1=";"
> T2="C:\AUTOEXEC.BAT"
> T3=""
> X=CallFn(SendMail,0,@T1,@T2,@T3,0)
> RELEASE LIBRARY SYS(2004) + "FOXTOOLS.FLL"
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform