] On Behalf Of Wilfried Mestdagh
Sent: 29. juni 2005 19:36
To: ICS support mailing
Subject: Re: [twsocket] Assign event handler to manually
created TStmpCli
Hello Patrick,
BTW, the mail can be sent out by ignoring the error.
Calling the exe
out of the IDE does not have error at all
Thanks for your response, Wilfried
I'm not 100% sure, but I thought you dan step trough pascal units with
cbuilder. Try to delete the SmtpProt.obj and SmtpProt.dcu files (maybe
only one of them is there), check the debug options in IDE and rebuild
the project.
I tried removing SmtpProt.obj
Hello Patrick,
BTW, the mail can be sent out by ignoring the error. Calling the
exe out of the IDE does not have error
at all.
This is very strange. It looks to me a CBulder IDE bug. Can someone
confirm this ?
I have no CBuilder installed at the moment, but is there someone who can
step
Hello Patrick,
to see what goes wrong. However in the Pascal unit the Watch and
Debug - Inspect features of the C++ Builder IDE are not workable.
I'm not 100% sure, but I thought you dan step trough pascal units with
cbuilder. Try to delete the SmtpProt.obj and SmtpProt.dcu files (maybe
only
Message-based component are 100% OK in a console mode application. There are
a lot of console mode
samples delivered with ICS (at least written in Delphi). Start looking by the
most recent which are
always the best.
I want to step into the SmtpProt.pas and trace the variables value to see
Hello Patrick,
TSyncSmtpCli is discouraged to use because it is very old and therefore
not really supported anymore.Use TSmspCli instead.
---
Rgds, Wilfried
http://www.mestdagh.biz
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Patrick Wong wrote:
Thanks for your advice.
Console program does not have message pump by default. I built a simple
function to peek messages in the following way:
void __fastcall PumpMessages()
{
MSG Msg;
unsigned short TimeTick = 0;
while(TimeTick 50)
{
Dear all,
I am writing a simple mail client in console application form. I manually
created a TSmtpCli object for my purpose.
The problem is that after I call the SmtpClient-Connect() method, the client
fails to connect to the SMTP server. I referenced the MailSnd example and did
set