Re: [twsocket] SMTP demo and RichText

2006-05-15 Thread Francois Piette
> So ... How do I say that the message is in RTF format? > Does it have to be MIME Encoded? Yes, it has. > If so, how? Something similar than HTML. Take a RTF email message written with Outlook or other mail client and have a look at his formating (CTRL-F3 within Outlook Express). btw: RTF mess

Re: [twsocket] SMTP demo and RichText

2006-05-15 Thread Jeff Cook
Hi Progress of sorts:- In the FormCreate I added:- sl := TStringList.Create; In the FormClose I added:- sl.Free; In each of the two buttons for sending, I added:- MsgMemo.Lines.SaveToFile('c:\temp\lines.txt'); sl.LoadFromFile('c:\temp\lines.txt'); And I changed the TSmtpTestForm.SmtpCli

[twsocket] SMTP demo and RichText

2006-05-15 Thread Jeff Cook
Hi I'm trying out the MailSnd demo - trying to adapt it to send mail as Rich Text. I've changed the MsgMemo to a TJvRichEdit and have tested by pasting in some rich text - e.g. my sig below is in Comic Sans MS and I can paste this into the message area and retain the font size etc. But wh

Re: [twsocket] Smtp error 452

2006-05-15 Thread Francois PIETTE
Outlook (non "Express" version) doesn't use SMTP, it use a MS proprietary protocol. Try with Outlook Express to be in a similar situation as ICS-SMTP component. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Mes

Re: [twsocket] TWSocket

2006-05-15 Thread Francois PIETTE
The normal way to gracefully close a connection is to call Shutdown(1). You'll then receive the OnSessionClosed even when remote part acknowledged the close. > procedure TForm1.Button1Click(Sender: TObject); > begin > if icsWSocket.State <> wsClosed then >icsWSocket.Close; > > if icsWSock

Re: [twsocket] IPC - TWSocket or Named Pipes?

2006-05-15 Thread Francois PIETTE
The performance should not be very different for that kind of application. Using a socket has the advantage of allowing easy remote administration to your service over standard protocol. Note that you could also build your administration program into your service and use a browser as administra

Re: [twsocket] IPC - TWSocket or Named Pipes?

2006-05-15 Thread Paul
Arno, i have tested it onces (with a few hundred bytes data) Didn't see much difference Name piped have a smaller foorprint though, they're already available. Paul - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, May 15, 2006 6:2

[twsocket] TWSocket

2006-05-15 Thread Stefan Blankenagel
Hi, I am writing a little program wchich is polling another program using TWSocketServer. For testing purposes I press a button which connects to the other program: procedure TForm1.Button1Click(Sender: TObject); begin if icsWSocket.State <> wsClosed then icsWSocket.Close; if icsWSocket

[twsocket] Smtp error 452

2006-05-15 Thread Tim
I have an email application using SmtpCli which has a test utility that tries to send a test email to the user. This utility uses very similar code to the MailSnd demo included with ICS. It has always worked fine, but it is now having issues with sending via Exchange Server 2003 and I have modifi

[twsocket] IPC - TWSocket or Named Pipes?

2006-05-15 Thread Arno Garrels
Hi, I need to rewrite an interactive service since interactive services are no longer supported in Vista ;( I want to split it into two parts, GUI and service application. The service in question needs to be controlled locally only. What do you suggest as the IPC protocol, TWSocket or named pipes

Re: [twsocket] Hint for HTTP Server

2006-05-15 Thread Francois Piette
> how can I optimize following code statement: What do you mean by "optimize" ? > Has anyboday an idea how this code can be written easier ? > Maybe with an loop ?? You could probably replace the "array of const" by a loop. See how AnswerPage is implemented, you have full source code :-) Cont

[twsocket] Hint for HTTP Server

2006-05-15 Thread Stefan Blankenagel
Hello, how can I optimize following code statement: ClientCnx.AnswerPage( Flags, '', NO_CACHE, sitename_system, nil, ['NOW', DateTimeToStr(Now), 'TITLE

[twsocket] How to use Socks5 with FTP?

2006-05-15 Thread Dominik Schmidt
Hi ! I want to use TFTPClient over socks5. TFTPClient has properties like Socksserver, sockspassword, ... If I setup socks5 I only get: [09:38:24] Request 5 Done. [09:38:24] StatusCode = 500 [09:38:24] LastResponse was : '500 Not a WinSock error (Winsock error #20003)' [09:38:24] Error = 20003 (5