Re: [twsocket] Send an html mail

2008-07-22 Thread Adilson Garcia
That is it!

Thanks a lot! 

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, July 21, 2008 4:18 PM
Subject: Re: [twsocket] Send an html mail


Arno Garrels wrote:

 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.

I just found that the THtmlSmtpCli doesn't have a published property
HtmlCharset, sorry. But it is very easy to fix, just add two lines
like shown below, save and rebuild the ICS package. 

In (OverbyteIcs)SmtpProt.pas search the string
property HtmlText  : TStrings  read  FHtmlText


[..]
published
property EmailImages : TStrings  read  FEmailImages
 write SetEmailImages;
property PlainText : TStrings  read  FPlainText
   write SetPlainText;
property HtmlText  : TStrings  read  FHtmlText
   write SetHtmlText;
add=   property HtmlCharset : String  read  FHtmlCharset
add=  write FHtmlCharset;
end;
[..]

I'm pretty sure that we will see this change in the next release. 

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html






-- 
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


[twsocket] Send an html mail

2008-07-21 Thread Adilson Garcia
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