[twsocket] Number of characters in HtmlSmtpClient.HtmlText property

2006-04-03 Thread WP
Hi
I wrote program, that sending emails in Html format. Everything works great, 
but I found big problem.
I use THtmlSmtpCli component. 
There is HtmlText property, which is TStrings type.
I have got:
  HtmlSmtpClient.HtmlText:= EmailBody;

  HtmlSmtpClient.EmailImages.Clear;
  HtmlSmtpClient.EmailImages.Add(FirstImage);
  HtmlSmtpClient.EmailImages.Add(SecondImage);
  HtmlSmtpClient.Host:= SmtpServerName;
  HtmlSmtpClient.Port:= IntToStr(SmtpServerPort);
  HtmlSmtpClient.FromName:=UserName + ' '+UserEmail+'';
  HtmlSmtpClient.HdrSubject:=Topic;
...


EmailBody is a TStringList variable, that store Html mail text...
One of this EmailBody lines is very long, about 900 characters... 
The problem is that when I receive that email the text is truncuted, after 
about 850 characters in that long line.
So, does HtmlText property cutting long lines to specified line length? Or, am 
I dong something wrong?

Thanks in advance, regards!
Paweł
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] It's time to make ICS-V5 last release

2006-03-19 Thread Pawel (WP)
Hi
Great, but when I tried to install latest version of  ICS v5 (Mar 09, 2006)) 
for Delphi 2005 I could't compile it and install...
What I do:
1. Removing all dcu (obj) files from vc32 and internet directory.
2. Opening IcsDel90.bdsproj file
3. Compiling this... I got errors.
  - in HttpContCod unit -
[Error] HttpContCod.pas(86): E2356 Property accessor must be an instance 
field or method
[Error] HttpContCod.pas(87): E2356 Property accessor must be an instance 
field or method
[Error] HttpContCod.pas(85): E2065 Unsatisfied forward or external 
declaration: 'THttpContentCoding.WriteBuffer'
[Fatal Error] HttpProt.pas(439): F2063 Could not compile used unit 
'HttpContCod.pas'

What I have to do? Could You fix this?
Thanks
Pawel Porwisz
--


- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Sunday, March 19, 2006 8:06 PM
Subject: [twsocket] It's time to make ICS-V5 last release


I plan to release ICS-V5. That is make the current ICS-V5 beta as the
 released version.
 Anyone have trouble with that ?

 My idea is that this ICS-V5 release will be the last V5 release. Only bug
 fixes will be done on that version. All new features will be added to V6
 only.

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be



 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Charset in Mail header

2006-03-08 Thread WP
Hello
A few days ago, I wrote this mail to You:

(...)What I have to add to mail header, to add definition of language charset? 
I want to add that email (html formatted) is using CharSet- iso-8859-2 
In component I have charset property as: iso-8859-2. But I need to add this 
line to header, in HtmlSmtpClientProcessHeader procedure.
I need this, because mail client built in Opera Browser doesn't recognize 
correct charset... (in outlook express is OK) (...)

Is it possible, what I want to do? Because, now I have in header line like this:
Content-Type: multipart/related; type=multipart/alternative; 
boundary==_NextPart_000_0048BF3A_0.5597F664

But, I need to add something like this:
Content-type: text/html; charset=iso-8859-2

If I add this line to procedure HtmlSmtpClientProcessHeader  it brokes the 
email...

Thanks in advance
Paweł Porwisz
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Mail header

2006-03-05 Thread WP
Hello
What I have to add to mail header, to add definition of language charset? I 
want to add that email (html formatted) is using CharSet- iso-8859-2 
In component I have charset property as: iso-8859-2. But I need to add this 
line to header, in HtmlSmtpClientProcessHeader procedure.

I need this, because mail client built in Opera Browser doesn't recognize 
correct charset... (in outlook express is OK)
Thanks
Paweł Porwisz
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Html email to many users

2006-02-27 Thread Pawel (WP)
Francois, You writed:
(...) Instead of programming a loop, you must use the event. You simply
start your
first mail send and then do nothing until the event signaling the end of
request os done. Then only you pick the next mail from your list and send
it.
Using this scheme, you can go faster by user multiple component. Each one
will send a mail without blocking the others (Note that some email servers
 limit the number of concurrent connections, so you may want to use only one
 component per destination server. Be clever !) (...)

Thanks for quick answer. But...
What event I have to use? Could anybody write me this more clear? Can
somebody correct my code?
I am just begining with ICS...
Best regards

- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, February 27, 2006 8:32 PM
Subject: Re: [twsocket] Html email to many users


  for i:= 0 to Lista.Count-1  do   // from 0 to 1
 begin
   SendMail(Lista.Strings[i]);
 end;
 And - what am I doing wrong - this doesn't work. Sending email is like in
 demo program.
 I have message:
 SmtpException: SMTP component not ready

 Your problem is a classical one: Your are trying to use a non-blocking
 event-driven component as a blocking one.
 The component will send your email in the background while your program is
 doing other things. Of course a single component can send only one mail at 
 a
 time. When you do a loop, the first iteration start sending a mail. Then
 second iteration would also send a mail while the previous is still 
 occuring
 and therefore you get the component busy error.

 Instead of programming a loop, you must use the event. You simply start 
 your
 first mail send and then do nothing until the event signaling the end of
 request os done. Then only you pick the next mail from your list and send
 it.

 Using this scheme, you can go faster by user multiple component. Each one
 will send a mail without blocking the others (Note that some email servers
 limit the number of concurrent connections, so you may want to use only 
 one
 component per destination server. Be clever !).

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Images in HTML formatted email - incorrect enumeration IMAGEn

2006-02-25 Thread WP
Hi
My program is using demo of THtmlSmtpClient component.
I have a little problem.
I have two images in email. In HTML message code it is:
...
IMG src=cid:'+'IMAGE1'+' width=90 height=88 border=0 alt=alt  and
IMG src=cid:'+'IMAGE2'+' width=90 height=88 border=0 alt=alt
...
 And then in SendButton procedure I have

   { Give the component the various data he need }
HtmlSmtpClient.PlainText   := nil; 
HtmlSmtpClient.HtmlText:= EmailBody; //html message code

HtmlSmtpClient.EmailImages.Add(PathToImage1);
HtmlSmtpClient.EmailImages.Add(PathToImage2); 

{ Initialize all SMTP component properties from our GUI }
HtmlSmtpClient.Host:= SmtpServerName;
HtmlSmtpClient.Port:= IntToStr(SmtpServerPort);

HtmlSmtpClient.FromName  :=UserName + ' '+UserEmail+'';
HtmlSmtpClient.HdrSubject  :=TematWiadomosciE.Text;
... 

When I click This button mail is sending. Everything is OK. But, when mail is 
sent and if I click again button that sending next email there is an error.
In html message code it is still ... cid: image1, but in code of ICS (I can 
see it in log, example:
 Content-Type: image/gif;
 name=image2.gif
 Content-Transfer-Encoding: base64
 Content-Disposition: inline;
 filename=image2.gif
 Content-ID: IMAGE3   -- here is incorrect - it should be IMAGE2


) the Image = Image3 and Image4. That is not correct - It should be again 
Image1 and Image2.

So, how to change this? 
I hope You understand what I mean...
Thanks in advance.
Paweł Porwisz
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Images in HTML formatted email - incorrect enumerationIMAGEn

2006-02-25 Thread WP
Hi
Solution of this problem is one line of code:
 HtmlSmtpClient.EmailImages.Clear;

Now, it is working.

Sorry, I should know that ;)
Regards
Paweł


- Original Message - 
From: Paweł (WP) [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, February 25, 2006 2:06 PM
Subject: [twsocket] Images in HTML formatted email - incorrect 
enumerationIMAGEn


Hi
My program is using demo of THtmlSmtpClient component.
I have a little problem.
I have two images in email. In HTML message code it is:
...
IMG src=cid:'+'IMAGE1'+' width=90 height=88 border=0 alt=alt 
and
IMG src=cid:'+'IMAGE2'+' width=90 height=88 border=0 alt=alt
...
 And then in SendButton procedure I have

   { Give the component the various data he need }
HtmlSmtpClient.PlainText   := nil;
HtmlSmtpClient.HtmlText:= EmailBody; //html message code

HtmlSmtpClient.EmailImages.Add(PathToImage1);
HtmlSmtpClient.EmailImages.Add(PathToImage2);

{ Initialize all SMTP component properties from our GUI }
HtmlSmtpClient.Host:= SmtpServerName;
HtmlSmtpClient.Port:= IntToStr(SmtpServerPort);

HtmlSmtpClient.FromName  :=UserName + ' '+UserEmail+'';
HtmlSmtpClient.HdrSubject  :=TematWiadomosciE.Text;
...

When I click This button mail is sending. Everything is OK. But, when mail 
is sent and if I click again button that sending next email there is an 
error.
In html message code it is still ... cid: image1, but in code of ICS (I 
can see it in log, example:
 Content-Type: image/gif;
 name=image2.gif
 Content-Transfer-Encoding: base64
 Content-Disposition: inline;
 filename=image2.gif
 Content-ID: IMAGE3   -- here is incorrect - it should be IMAGE2


) the Image = Image3 and Image4. That is not correct - It should be again 
Image1 and Image2.

So, how to change this?
I hope You understand what I mean...
Thanks in advance.
Paweł Porwisz
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Bcc list - multiple users - problem with bad email adress

2006-02-17 Thread WP
Hello!
I am from Poland. This is my problem.
Let's say that I send email to 100 people. They are in BCC list. For example:
[EMAIL PROTECTED]; [EMAIL PROTECTED];  ..  [EMAIL PROTECTED];
Mail is sending. But, suddenly I have an error message, that some emaill 
adresses are incorrect or doesn't exist anymore.
So, if for example 44 adres from my bcc list is bad, that only 43 people will 
get email - the rest, starting from 44 will not, because a person with 44 
number has bad email adress/ inactive email box/or something that caused error.

So, please, can You tell me how to do that I can fix this problem? To send 
the rest emails, even if some adresses are incorrect... like for example 
Outlook Express can do (mail are sending to correct adresses, the rest (bad 
adress) are ignore, and eventually logged this bad adress, that user could fix 
this adresses).

I could send this email to every person, individually, but it would take too 
long time... So, the best is sending it using bcc list.

It would be great that I could log to file (or TMemo), that email has been send 
to each person on bcc list. For example:
My bcc list looks like below:
[EMAIL PROTECTED];[EMAIL PROTECTED]; ...  [EMAIL PROTECTED]

 During sending the message to multiple users it would be logged to file (or 
TMemo) like this:

1. Sent to [EMAIL PROTECTED]
2. Sent to [EMAIL PROTECTED]
...
43. Sent to [EMAIL PROTECTED]
44. ERROR - Massage send failed... Adress: [EMAIL PROTECTED]
...
n. Sent to [EMAIL PROTECTED]

So, if some adress is bad, I would know about this and correct bcc list. But 
the most important is that bad adress in bcc list doesn't broke sending email 
to other users on this list. I hope You understad what I mean... 

Best regards.

Ps: Sorry for my english...



Paweł
[EMAIL PROTECTED]
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be