> After this line of code: > HtmlSMTPCli1.HtmlText.LoadFromFile(MailMessageFile);. > when I inspect the content of the HtmlText property, there is a lot of > strange characteres, and if I send the email comes an blank message
Probably the body of the HTML page just uses a different charset. If so, try to change property Charset of the component to the charset of the HTML body. If that doesn't help upload the page somewhere and post the link here. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Adilson Garcia wrote: > I want to send an html page saved by the TWebBrowser with the > THtmlSMTPCli (ICS) > > After this line of code: > HtmlSMTPCli1.HtmlText.LoadFromFile(MailMessageFile);. > when I inspect the content of the HtmlText property, there is a lot of > strange characteres, and if I send the email comes an blank message > > I discovered that the page saved by the WebBrowser is encoded with an > charset, wich is not supported by the HTMLText property because it is > an StringList and it only accepts ansi text files, > > Creating an plain ansi text file in notepad and pasting the htmlcode > and sending it, the message displays correctly > > My problem is that my cliente will create the html pages using an > editor that I created using the WebBrowser, > > My question is: > - Is there a way to send these pages with the HtmlSmtpCli component? > > Thanks! -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be