Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to put mail in OE or OEX from VFP6?
Message
De
27/01/2003 08:11:33
 
 
À
27/01/2003 07:58:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00745656
Message ID:
00745695
Vues:
26
Hi, I will check out the links provided, but in the meantime,

Searching my maps again, I suddenly found this ‘mailcode.prg’ that
I must have downloaded from UT quite a while ago.

It works just as the doctor ordered, except I am never satisfied:

I have tried to point to a text file like: loEmailBody = text.doc

But that doesn’t work.

Is there any method that allows for insertion of a text file into the msg body,
Or will I have to insert the text lines one by one by creating a string with cr/lf’s, like

‘first line’+chr(10)+chr(13) ;
+ ‘second line’

and so on?
loOutlook = createobject('outlook.application')
loEmailItem = loOutlook.CreateItem(0)
loEmailItem.Attachments.Add("c:\autoexec.bat")
loEmailItem.To = "rolf.aalberg@c2i.net"
loEmailItem.Subject = "Here is the file"
loEmailItem.Body = "attached is the file"
loEmailItem.Send
release loOutlook


Rolf
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform