Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chilkat Email
Message
From
19/06/2017 15:50:18
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
01652120
Message ID:
01652127
Views:
62
>>>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).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform