Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email attachments in VFP using an MS Outlook object
Message
De
21/01/1999 21:14:32
 
 
À
21/01/1999 18:31:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00178788
Message ID:
00178809
Vues:
35
>I'm using the following code to send email from VFP 6.0 through Outlook:
>
>oOutLookObject = CREATEOBJECT("Outlook.Application")
>IF TYPE("oOutLookObject") = "O" AND !ISNULL(oOutLookObject)
> oEmailItem = oOutLookObject.CreateItem(0)
> WITH oEmailItem
> .Body = lcBody
> .To = lcTo
> .Subject = lcSubject
> .Importance = lnImportance
> .Send
> ENDWITH
>ENDIF
>
>My question is, how can I add multiple attachments to this email? Anyone know the correct syntax for that?
>
>TIA

Use the add method of the item's Attachments collection.

oEMAilItem.Attachments.Add("C:\myfile.txt")
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform