Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To send HTML file
Message
 
À
18/10/2005 09:56:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01059503
Message ID:
01059997
Vues:
13
In my experience, if you are going to use CreateMHTMLbody, it should not be mixed with HTMLBody. If I need to send a chart to a client with some text with it, I construct the whole body of the e-mail message in the HTML file, and from there create the webarchive body.
fso = CREATEOBJECT('Scripting.FileSystemObject')
IF FILE('c:\mthtml.htm')
	DELETE FILE 'c:\mthtml.htm'
ENDIF
tf = fso.CreateTextFile('c:\mthtml.htm', .T.)
tf.WriteLine('<HTML>')
tf.WriteLine('<BODY>')
tf.WriteLine(' <img src = "c:\chart.gif" />')
tf.WriteLine('<BR>')
tf.WriteLine('<BR>')
tf.WriteLine('Please find listed the adjusted minutes recorded on both GateKeeper and HK switches for '+ldDate2)
tf.WriteLine('<BR>')
tf.WriteLine('<BR>')
etc....
>thanks Mr Mike, i was using // instead of \\ and that was creating the problem.
>
>I have another problem. While the HTML files in my PC are perfect, some of the files are not received properly when sent by this CDO.Message. When the receipient receives, some portion of the file are overlapping on other part of the file. But if I send the same file thru outlook express, there is no problem.
>
>I guess something happens with this CreateMHTMLBody or HTMLBody. Do you have any idea
>about this problem and solution for the same. thanks in advance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform