>Using Sergey's code to send emails, is there a way to take HTML email message text and convert it to its text equivalent? I need to populate the cTextBody property based on the cHtmlBody property.
>
>
>.cHtmlBody = "<html><body><b>This is an HTML body<br>" + ;
> * "It'll be displayed by most email clients</b></body></html>"
>
>.cTextBody = "This is a text body." + CHR(13) + CHR(10) + ;
> "It'll be displayed if HTML body is not present or by text only email clients"
>
>
>
>
http://www.berezniker.com/content/pages/visual-foxpro/send-email-cdo-2000The simple idea that comes to mind right away is to grab InnerText property by first running this html in IE or BrowserControl. If, of cource, this property is not automatically populated.
If it's not broken, fix it until it is.
My Blog