Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chilkat Email
Message
De
19/06/2017 15:50:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
01652120
Message ID:
01652127
Vues:
63
>>>How do I get the document shown below as body of text - the way I have it below just shows the name of the document
>>>
>>>loMailman.SmtpHost = "auth.smtp.1and1.co.uk"
>>>loMailman.SmtpUsername = "colin@colin-northway.com"
>>>loMailman.SmtpPassword = "ngoloosh"
>>>loEmail = CreateObject('Chilkat.Email2')
>>>loEmail.Subject = "Marketing, Customer Retention or IT. Could you use help?"
>>>loEmail.Body = "m:\advertising\businessstrategy.doc"
>>>loEmail.From = "colin@colin-northway.com"
>>>loEmail.AddTo("","&eccmail")
>>>lcContentType = loEmail.AddFileAttachment("m:\advertising\businessstrategy.doc")
>>
>>loEmail.Body = FileToStr("m:\advertising\businessstrategy.doc")
>>
>>Another question is if the document will appear as you want it, I doubt it.
>
>Tore
>
>Works fine when I set it as an HTM - Doesnt work properly as a doc
>
>Thanks
>
>Do you know of an easy way to create and edit htm pages?
>
>Colin

You could take the DOC file and export it to HTML in Word. The resulting HTML will typically sort of look like the DOC file, and trying to edit the converted document is often an exercise in frustration (formatting code is often convoluted and apt to break if the text length changes significantly) -- and I personally find it easier to simply export as TXT, then re-do the HTML markup by hand in a text editor (and periodically re-checking results in a Web browser).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform