Re: [twsocket] SMTPOpen failing, Why?

2008-04-17 Thread Veit Zimmermann
May I summarize. I have three options:

1. Continue to use high level commands (Open) and abort and tell the 
user, if the server does not support authentication.

2. Offer an option to use no authentication.

3. Chang to more basic functions and switch to no authentication in case 
of none available.

Oh, by the way: I use V5 in this project.
Thanks to all of you!

Veit


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


Re: [twsocket] SMTPOpen failing, Why?

2008-04-17 Thread DZ-Jay

On Apr 17, 2008, at 02:30, Veit Zimmermann wrote:

 May I summarize. I have three options:

 1. Continue to use high level commands (Open) and abort and tell the
 user, if the server does not support authentication.

 2. Offer an option to use no authentication.

 3. Chang to more basic functions and switch to no authentication in 
 case
 of none available.

 Oh, by the way: I use V5 in this project.
 Thanks to all of you!

I would suggest #2:  Let the user select in your application whether 
they want authentication or not.  However, if they want authentication, 
and the server does not support it, you should let it fail and then let 
the user take action.  If a user is expecting a secure environment but 
the server does not support it, I do not think the application should 
just silently ignore this.

This is the behaviour of common mail clients right now.  In 
Thunderbird, for example, if I set it to use authentication and the 
server does not support it, it will fail sending e-mail, and that's it. 
  I have to actively go and change my configurations to either use a 
different server, or disable authentication.

I think Arno also agreed that this is the proper behaviour.

dZ.

-- 
DZ-Jay [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] problem with TFtpCli

2008-04-17 Thread Svemu Informatica srl - Reparto Sviluppo
Hi to all,
i use ftpclient from same years ago, recently i've a problem when i send big 
file.

Upload from webserver start regulary but ad the end of transfer, i don't 
recive any events or timeout, but file on web server isn't corrupted, see 
log for more details.

With small files work fine.


23.06.24.351 ! Aborting
23.06.24.351 ! Aborting
23.06.24.351 ! HighLevelAsync 0
23.06.24.351 TWSocket will connect to 62.149.140.84:21
23.06.24.414 00B14B34 TriggerDataSent 264
23.06.24.461 |220-FTP server ready.|
23.06.24.461 |220 This is a private system - No anonymous login|
23.06.24.461 ! HighLevelAsync 0
23.06.24.461 00B14B34 TriggerDataSent 264
23.06.24.523 |331 User [EMAIL PROTECTED] OK. Password required|
23.06.24.523 ! HighLevelAsync 0
23.06.24.523 00B14B34 TriggerDataSent 264
23.06.24.601 |230-Your bandwidth usage is restricted|
23.06.24.601 |230-User [EMAIL PROTECTED] has group access to:  users   |
23.06.24.601 |230 OK. Current restricted directory is /|
23.06.24.601 ! HighLevelAsync 0
23.06.24.601 00B14B34 TriggerDataSent 264
23.06.24.648 |250 OK. Current directory is /upload/aggiornamenti|
23.06.24.648 ! HighLevelAsync 0
23.06.24.648 00B14B34 TriggerDataSent 264
23.06.24.695 |200 TYPE is now 8-bit binary|
23.06.24.695 ! HighLevelAsync 0
23.06.24.695 00B14B34 TriggerDataSent 264
23.06.24.742 |227 Entering Passive Mode (62,149,140,84,198,154)|
23.06.24.742 ! HighLevelAsync 0
23.06.24.742 TWSocket will connect to 62.149.140.84:50842
23.06.24.789 ! Data Session opened (Put)
23.06.24.789 00B15318 TriggerDataSent 296
23.06.24.789 00B14B34 TriggerDataSent 264
23.06.24.883 |150 Accepted data connection|
23.06.24.883 ! Send first block
23.06.24.883 DataSocketPutDataSent 1460
23.06.24.883 00B15318 TriggerDataSent 296
23.06.24.883 DataSocketPutDataSent 1460
23.06.24.883 00B15318 TriggerDataSent 296
23.06.24.883 DataSocketPutDataSent 1460
..
..
..
01.52.17.023 DataSocketPutDataSent 1460
01.52.17.023 00B15318 TriggerDataSent 296
01.52.17.023 DataSocketPutDataSent 1072
01.52.17.211 00B15318 TriggerDataSent 296
01.52.17.211 DataSocketPutDataSent 0
01.52.17.211 00B15318 TCustomWSocket.Shutdown 1 296
01.52.17.726 ! Data Session closed
01.52.17.726 ! Next3PutAsync
01.52.17.726 00B15318 TCustomWSocket.Shutdown 1 296



but with small files:

09.15.41.515 ! Aborting
09.15.41.515 ! Aborting
09.15.41.515 ! HighLevelAsync 0
09.15.41.515 TWSocket will connect to 217.73.226.15:21
09.15.41.781 00BD4944 TriggerDataSent 632
09.15.42.031 |220-- Welcome to Pure-FTPd [TLS] --|
09.15.42.031 |220-You are user number 3 of 50 allowed.|
09.15.42.031 |220-Local time is now 09:09. Server port: 21.|
09.15.42.031 |220-IPv6 connections are also welcome on this server.|
09.15.42.031 |220 You will be disconnected after 15 minutes of inactivity.|
09.15.42.031 ! HighLevelAsync 0
09.15.42.031 00BD4944 TriggerDataSent 632
09.15.42.296 |331 User [EMAIL PROTECTED] OK. Password required|
09.15.42.296 ! HighLevelAsync 0
09.15.42.296 00BD4944 TriggerDataSent 632
09.15.42.843 |230-User [EMAIL PROTECTED] has group access to: 
easwebjv|
09.15.42.843 |230 OK. Current restricted directory is /|
09.15.42.843 ! HighLevelAsync 0
09.15.42.843 00BD4944 TriggerDataSent 632
09.15.43.093 |250 OK. Current directory is /upload/aggiornamenti|
09.15.43.093 ! HighLevelAsync 0
09.15.43.109 00BD4944 TriggerDataSent 632
09.15.43.359 |200 TYPE is now 8-bit binary|
09.15.43.359 ! HighLevelAsync 0
09.15.43.359 00BD4944 TriggerDataSent 632
09.15.43.625 |227 Entering Passive Mode (217,73,226,15,78,161)|
09.15.43.625 ! HighLevelAsync 0
09.15.43.765 TWSocket will connect to 217.73.226.15:20129
09.15.43.906 ! Data Session opened (Put)
09.15.43.906 00BD5144 TriggerDataSent 616
09.15.43.906 00BD4944 TriggerDataSent 632
09.15.44.171 |150 Accepted data connection|
09.15.44.171 ! Send first block
09.15.44.171 DataSocketPutDataSent 1460
09.15.44.171 00BD5144 TriggerDataSent 616
09.15.44.171 DataSocketPutDataSent 1460
09.15.44.171 00BD5144 TriggerDataSent 616
..
..
09.15.58.484 DataSocketPutDataSent 1460
09.15.58.484 00BD5144 TriggerDataSent 616
09.15.58.484 DataSocketPutDataSent 650
09.15.58.578 00BD5144 TriggerDataSent 616
09.15.58.578 DataSocketPutDataSent 0
09.15.58.578 00BD5144 TCustomWSocket.Shutdown 1 616
09.15.58.843 ! Data Session closed
09.15.58.843 ! Next3PutAsync
09.15.58.843 00BD5144 TCustomWSocket.Shutdown 1 616
09.15.58.843 |226-File successfully transferred|
09.15.58.843 |226 14.674 seconds (measured here), 22.88 Kbytes per second|
09.15.58.843 ! Next3PutAsync
09.15.58.843 ! HighLevelAsync 0
09.15.58.843 00BD4944 TriggerDataSent 632
09.15.58.890 |221-Goodbye. You uploaded 336 and downloaded 0 kbytes.|
09.15.58.890 |221 Logout.|
09.15.58.890 00BD4944 TCustomWSocket.Shutdown 1 632
09.15.58.890 ! HighLevelAsync 0
09.15.58.890 ! HighLevelAsync done


i'm waiting for your answers

best regards
daniele 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website 

Re: [twsocket] Sending mail with SMTPClient including images

2008-04-17 Thread Jeff Cook
Back again after a spell of frantically doing other stuff ...

I do indeed have the THtmlSmtpClient, but am perplexed as to how to use
it.  

I have my RichEdit with (or without) images, and I can see that:-

TSmtpClient has a property MailMessage
and
THtmlSmtpClient has EmailImages and HtmlText

... But what to I do with them.

Currently I use:-
 
procedure TSMTPMailMsgForm.SmtpClientGetData(Sender: TObject;
  LineNum: Integer; MsgLine: Pointer; MaxLen: Integer; var More:
Boolean);
var
  Len: Integer;
begin
  if LineNum  sl.Count then
More := FALSE
  else begin
Len := Length(sl.Strings[LineNum - 1]);
{ Truncate the line if too long (should wrap to next line) }
if Len = MaxLen then
  StrPCopy(MsgLine, Copy(sl.Strings[LineNum - 1], 1, MaxLen - 1))
else
  StrPCopy(MsgLine, sl.Strings[LineNum - 1]);
  end;
end;

... To feed the lines from string list sl 

Any help appreciated

TIA

Jeff

--
Jeff Cook
Aspect Systems Ltd
Phone: +682 28 213
Skype: jeffraro
www.aspect.co.nz 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Wilfried Mestdagh
Sent: Tuesday, 8 April 2008 8:10 p.m.
To: ICS support mailing
Subject: Re: [twsocket] Sending mail with SMTPClient including images


Hello Jeff,

You should have it installed unless you have a very old version of ICS.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Tuesday, April 8, 2008, 21:59, Jeff Cook wrote:

 Kia Orana Wilfred

 Perhaps THtmlSmtpClient is just what I need - I'm not very bright in

 the email/html department, so a component that does it all for me 
 sounds the thing for me!

 BUT ... I can't find it anywhere - tried Googling with no success.

 Any pointers as to where I'd find it - I'm developing with Delphi 6 if

 that makes any difference.

 Meitaki Ma'ata

 Kia Manuia

 Jeff
 --
 Jeff Cook
 The Cooks Oasis
 The Cooks Ltd
 Phone: +682 28 213
 Skype: jeffraro
 www.cookislandsoasis.com
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Wilfried Mestdagh
 Sent: Monday, 7 April 2008 8:57 p.m.
 To: ICS support mailing
 Subject: Re: [twsocket] Sending mail with SMTPClient including images


 Hello Jeff,

 the image gets stripped on the way out.  I DON'T want to have the 
 image sent as an attachment (can already do that) but want it in the 
 body of the email itself.

 The HTML part is an attachment and the images are also attachments. If
 you want the images in the html document you have to reference them in
 the html document in the right sequence.

 A correct email also have a plain text. So if you want to send HTML
 email with a reference to an image you put the plain text in the body,
 the HTML as attachment and the image also.

 Check also THtmlSmtpClient. I think as the name say it will handle a
 large part of it for you.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

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


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

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