Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : TidText - EIdTextnvalidCount, Length must be greater than 1
| Subject: | TidText - EIdTextnvalidCount, Length must be greater than 1 |
| Posted by: | "John Laatz" (jo..@base10.co.za) |
| Date: | Fri, 27 May 2005 13:14:53 |
Hi
I am new to indy. My objective is to send out HTML emails with attachments.
I have created the attachment (TIDAttachment) successfully and TIDText part
specifying Content type as "text/html".
the problem I am getting is: EIdTextnvalidCount, Invalid Text Count, must be
greater than 1.
I know that the body definately has more than 1 char in it, but I keep
getting this error?
I am using Delphi 6 with Indy 9.0.1.8
When I add the following code, I get the error above...
{ create the body as a message part in HTML }
with TIdText.Create( MessageParts, nil ) do
begin
ContentType := 'text/plain';
Body.Assign( BuildTestBody );
end;
{ end if }
If this code is not added, I get a plain text email with the attachment.
Any Ideas??