Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email
Message
De
15/10/2002 15:10:18
 
 
À
15/10/2002 15:04:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Email
Divers
Thread ID:
00711448
Message ID:
00711453
Vues:
9
Sure, there's a way ;)

Here is an HTML example. You can find the Outlook object model in VBAOUTL9.CHM (for Outlook 2000). There are other ways as well, such as MAPI (but you can't send HTML with that method). There are also methods that do not require Outlook...
lcHTMLString = [<html><body>Hello <b>world!</b></body></html>]

oOutlook = createobject("outlook.application")
oitem = oOutlook.createitem(0)
oitem.recipients.add("somebody@somewhere.com")
oitem.subject =  "Test Sending HMTL message from VFP"
oitem.HTMLBody = lcHTMLString  
oitem.send()
>Is there a way to sent an Email through Outlook using FoxPro? I was looking to see if there was a way to call Outlook with parameters or some pre-existing OLE object. Am I just missing the parameters, or would I need to incorporate some external DLL file to make this happen. Any ideas?
>
>TIA
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform