Re: [twsocket] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-23 Thread Arno Garrels
Hi Ole,

Your project works for me.

 I installed as described in the file: Readme7.txt.
 
 With both personalities loaded, I selected the file
 CB2009Install.groupproj Selected the ...run.bpl and made a build.
 Then selected the ...design.bpl and made an Install.
 
 No errors was shown and the packages was apparently installed correct.

That's how I installed for this test as well.

 
 Now, I have just tried what you mention above. In the options I
 selected the Generate All C++Builder Files option and made a build
 on the ...run.bpl.
 
 and got the error:
 [ILINK32 Error] Fatal: Unable to open file 'OVERBYTEICSWINSOCK.OBJ'
 and of course, when trying to build the ...design.bpl I get:
 [ILINK32 Error] Fatal: Unable to open file 'OVERBYTEICSCB2009RUN.BPI'

Generate All C++Builder Files works only with the Delphi packages 
included in the Delphi install group. I got the same error when
I tried to build the C++Builder packages with this option.

 
 Two more errors for my collection :-(
 
 Back to the Generate C++ .objs, headers, namespaces, export option,
 the ICS installs without errors, 

That's correct.

 but my little simple project fails..!

I'm running out of ideas. Especially because you said that the Delphi
MailSnd demo works for you and you got the same error on a clean notebook.
Maybe there is a software installed on both system which causes this error,
just like the Logitec webcam software, for example, which makes debugging
impossible? I'm thinking of any protection software/firewall etc..

--
Arno Garrels 

 

--
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-23 Thread Arno Garrels
Ole Braad-Sørensen wrote:

 *** IT WORKS *** 

I'm glad you got it running.

--
Arno Garrels

--
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-22 Thread Ole Braad-Sørensen

Sorry for late reply. Have been away..!

On Tue, 19 May 2009 08:31:54 +0200, you wrote:

How did you install it exactely? Did you install for both personalities
from the Delphi personality building the Delphi package with linker 
option Generate All C++Builder Files, or did you install the C++Builder
install group in the C++Builder personality?

I installed as described in the file: Readme7.txt.

With both personalities loaded, I selected the file CB2009Install.groupproj
Selected the ...run.bpl and made a build.
Then selected the ...design.bpl and made an Install.

No errors was shown and the packages was apparently installed correct.

Now, I have just tried what you mention above. In the options I selected the
Generate All C++Builder Files option and made a build on the ...run.bpl.

and got the error: 
[ILINK32 Error] Fatal: Unable to open file 'OVERBYTEICSWINSOCK.OBJ'
and of course, when trying to build the ...design.bpl I get:
[ILINK32 Error] Fatal: Unable to open file 'OVERBYTEICSCB2009RUN.BPI'

Two more errors for my collection :-(

Back to the Generate C++ .objs, headers, namespaces, export option, the ICS
installs without errors, but my little simple project fails..!

Thanks again for taking your time for helping me. If it works for you, it should
also be possible to get it working here too. I am sending the project to you
PM  :-))

Regards:
Ole Braad-Sorensen
www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-21 Thread Arno Garrels
Arno Garrels wrote:
 Ole Braad-Sørensen wrote:
 
 Just made an experiment: Installed BCB2009 on my laptop. No BCB has
 ever been there before and I take it as a clean machine. Installed
 ICS on the system and made a new version of my email demo. Guess
 what happened: Got the same error there :-(
 
 How did you install it exactely? Did you install for both
 personalities from the Delphi personality building the Delphi package
 with linker option Generate All C++Builder Files, or did you
 install the C++Builder install group in the C++Builder personality?

In the meanwhile I tested both methods successfully. I haven't received
your project yet.

--
Arno Garrels
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-19 Thread Ole Braad-Sørensen
On Mon, 18 May 2009 12:00:01 +, you wrote:

All I can say is that it is working nicely with BCB in my little test
application. The problem must be IMO something on your side. 
You can sent me your project if you like by PM so I can test it with my
clean ICS installation. If the mail server is public please send me
its address as well.   

Thanks for taking your time to solve this problem.!

Just made an experiment: Installed BCB2009 on my laptop. No BCB has ever been
there before and I take it as a clean machine. Installed ICS on the system and
made a new version of my email demo. Guess what happened: Got the same error
there :-(

Just before I give up and go back to the working BCB6 in stead.

I would appreciate if you would try my little demo email on your system for
testing. What do you mean by sending it by PM...?

The mail server is om my local network and cannot be reached from outside world.

Regards:
Ole Braad-Sorensen
www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-19 Thread Arno Garrels
Ole Braad-Sørensen wrote:
 What do you mean by sending it by PM...?

PM = Personal Mail

--
Arno Garrels

-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-19 Thread Arno Garrels
Ole Braad-Sørensen wrote:
 
 Just made an experiment: Installed BCB2009 on my laptop. No BCB has
 ever been there before and I take it as a clean machine. Installed
 ICS on the system and made a new version of my email demo. Guess
 what happened: Got the same error there :-(

How did you install it exactely? Did you install for both personalities
from the Delphi personality building the Delphi package with linker 
option Generate All C++Builder Files, or did you install the C++Builder
install group in the C++Builder personality?

--
Arno Garrels



-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-18 Thread Fastream Technologies
Hello,

Make sure old ICS package libs are not left in project cbproj file with notepad.

Regards,

SZ

On 5/17/09, Ole Braad-Sørensen o...@soholm.com wrote:
 On Sun, 17 May 2009 11:32:30 +, you wrote:

 I saw similar problem with thttpcli and it went away when I cleaned
 and rebuilt the ICS package.

 Isn't life strange. I just updated using SVN, cleaned, rebuilt and installed 
 the
 ICS package.

 Would you believe it. Now I don't get the errorcode 23396 anymore...!
 It has changed to ErrorCode = 61582.

 Sad enough, this don't help much. Maybe another compile will show something
 different. At last I could get lucky and getting the whole thing working. But
 maybe just after some years. Better waiting for the next Indy update... :-(

 Regards:
 Ole Braad-Sorensen
 www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-17 Thread Ole Braad-Sørensen
On Thu, 14 May 2009 10:31:53 +, you wrote:

 
 Possibly you need breaks? :-)
 
 switch(RqType)
  {
   case smtpConnect:  SMTP-Helo(); break;
   case smtpHelo: SMTP-MailFrom(); break;
   case smtpEhlo: SMTP-Auth(); break;
   case smtpAuth: SMTP-MailFrom(); break;
   case smtpMailFrom: SMTP-RcptTo(); break;
   case smtpRcptTo:   SMTP-Data(); break;
   case smtpData: SMTP-Quit(); break;
  }
 
 No. Tried this too. 

Really?

Yes, really :-)


So please try again, it works fine with the breaks!  
 

Maybe I did not explain myself thorough enouch, sorry!

The breaks has no effect in this case, as the error comes long before the breaks
will be at any use. Much code hes been made and you have not seen it all :-)

Made another try on another small project with the same result. See here:

First the MailSendButton:

void __fastcall TForm2::ButtonClick(TObject *Sender)
{
SMTP-Host   = EditHost-Text;
SMTP-Port   = EditPort-Text;
SMTP-SignOn = EditSignOn-Text;
SMTP-FromName   = EditFromName-Text;
SMTP-HdrFrom= EditFromName-Text;
SMTP-HdrTo  = EditHdrTo-Text;
SMTP-HdrCc  = EditHdrCc-Text;
SMTP-HdrSubject = EditHdrSubject-Text;
SMTP-Username   = EditUserName-Text;
SMTP-Password   = EditPassword-Text;
SMTP-RcptName-Clear();
SMTP-RcptNameAdd(EditHdrTo-Text, EditHdrCc-Text, EditHdrBcc-Text);
Display(Connecting to mailserver);
SMTP-Connect();
}

And now the OnRequestdone:  (with breaks)  :-)

void __fastcall TForm2::SMTPRequestDone(TObject *Sender, TSmtpRequest RqType,
WORD ErrorCode)

{

 // When arriving to here from Connect,
 // the RqType is = 0 and the ErrorCode is = 23396  - :-(
 // What is ErrorCode 23396 ?  (Guess it is not known)

 if (ErrorCode  0  ErrorCode  1) {
  Display(RequestDone Rq= + IntToStr(RqType) +  Error= +
SMTP-ErrorMessage);
 } else {
  Display(RequestDone Rq= + IntToStr(RqType) +  Error= +
IntToStr(ErrorCode));
 }

 if (ErrorCode == 0) {
  switch(RqType)
   {
case smtpConnect:   SMTP-Helo();   break;
case smtpHelo:  SMTP-MailFrom();   break;
case smtpEhlo:  SMTP-Auth();   break;
case smtpAuth:  SMTP-MailFrom();   break;
case smtpMailFrom:  SMTP-RcptTo(); break;
case smtpRcptTo:SMTP-Data();   break;
case smtpData:  SMTP-Quit();   break;
case smtpQuit:  break;
   }
 }
}

As you see in the comments above, the switch is never reached :-(

The above program is a copy of the MailSnd example, which is in Delphi and works
great here. But in my translation to C++ it do not work. I may have missed
something or the SMTP thing don't work at all in C++.

Any suggestions...?

Regards:
Ole Braad-Sorensen
www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-17 Thread Arno Garrels
Ole Braad-Sørensen wrote:

 void __fastcall TForm2::SMTPRequestDone(TObject *Sender, TSmtpRequest
 RqType, WORD ErrorCode)
 
 {
 
 // When arriving to here from Connect,
 // the RqType is = 0 and the ErrorCode is = 23396  - :-(
 // What is ErrorCode 23396 ?  (Guess it is not known)

I have no idea? It's neither a winsock error nor a SMTP status code.
The only error number beyond 2 I am aware of is set by the 
component internally that is const smtpProtocolError = 20600;

Please show us what is returned (if anything) when you telnet the mail
server from the same machine from where you tried the C++ EXE.
Command prompt: telnet hostname 25.

 The above program is a copy of the MailSnd example, which is in
 Delphi and works great here. But in my translation to C++ it do not
 work. I may have missed something or the SMTP thing don't work at all
 in C++. 

Very strange! I just tested again with ICS-V7, CB2007 and CB2009 
successfully. 

--
Arno Garrels


-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-17 Thread Fastream Technologies
Hello,

I saw similar problem with thttpcli and it went away when I cleaned
and rebuilt the ICS package.

Best Regards,

SZ

On 5/17/09, Ole Braad-Sørensen o...@soholm.com wrote:
 On Thu, 14 May 2009 10:31:53 +, you wrote:

 
  Possibly you need breaks? :-)
 
  switch(RqType)
   {
case smtpConnect:  SMTP-Helo(); break;
case smtpHelo: SMTP-MailFrom(); break;
case smtpEhlo: SMTP-Auth(); break;
case smtpAuth: SMTP-MailFrom(); break;
case smtpMailFrom: SMTP-RcptTo(); break;
case smtpRcptTo:   SMTP-Data(); break;
case smtpData: SMTP-Quit(); break;
   }
 
  No. Tried this too.
 
 Really?

 Yes, really :-)

 
 So please try again, it works fine with the breaks!
 

 Maybe I did not explain myself thorough enouch, sorry!

 The breaks has no effect in this case, as the error comes long before the 
 breaks
 will be at any use. Much code hes been made and you have not seen it all :-)

 Made another try on another small project with the same result. See here:

 First the MailSendButton:

 void __fastcall TForm2::ButtonClick(TObject *Sender)
 {
SMTP-Host   = EditHost-Text;
SMTP-Port   = EditPort-Text;
SMTP-SignOn = EditSignOn-Text;
SMTP-FromName   = EditFromName-Text;
SMTP-HdrFrom= EditFromName-Text;
SMTP-HdrTo  = EditHdrTo-Text;
SMTP-HdrCc  = EditHdrCc-Text;
SMTP-HdrSubject = EditHdrSubject-Text;
SMTP-Username   = EditUserName-Text;
SMTP-Password   = EditPassword-Text;
SMTP-RcptName-Clear();
SMTP-RcptNameAdd(EditHdrTo-Text, EditHdrCc-Text, EditHdrBcc-Text);
Display(Connecting to mailserver);
SMTP-Connect();
 }

 And now the OnRequestdone:  (with breaks)  :-)

 void __fastcall TForm2::SMTPRequestDone(TObject *Sender, TSmtpRequest RqType,
 WORD ErrorCode)

 {

  // When arriving to here from Connect,
  // the RqType is = 0 and the ErrorCode is = 23396  - :-(
  // What is ErrorCode 23396 ?  (Guess it is not known)

  if (ErrorCode  0  ErrorCode  1) {
  Display(RequestDone Rq= + IntToStr(RqType) +  Error= +
 SMTP-ErrorMessage);
  } else {
  Display(RequestDone Rq= + IntToStr(RqType) +  Error= +
 IntToStr(ErrorCode));
  }

  if (ErrorCode == 0) {
  switch(RqType)
   {
case smtpConnect:   SMTP-Helo();   break;
case smtpHelo:  SMTP-MailFrom();   break;
case smtpEhlo:  SMTP-Auth();   break;
case smtpAuth:  SMTP-MailFrom();   break;
case smtpMailFrom:  SMTP-RcptTo(); break;
case smtpRcptTo:SMTP-Data();   break;
case smtpData:  SMTP-Quit();   break;
case smtpQuit:  break;
   }
  }
 }

 As you see in the comments above, the switch is never reached :-(

 The above program is a copy of the MailSnd example, which is in Delphi and 
 works
 great here. But in my translation to C++ it do not work. I may have missed
 something or the SMTP thing don't work at all in C++.

 Any suggestions...?

 Regards:
 Ole Braad-Sorensen
 www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-17 Thread Ole Braad-Sørensen
On Sun, 17 May 2009 11:32:30 +, you wrote:

I saw similar problem with thttpcli and it went away when I cleaned
and rebuilt the ICS package.

Isn't life strange. I just updated using SVN, cleaned, rebuilt and installed the
ICS package.

Would you believe it. Now I don't get the errorcode 23396 anymore...!
It has changed to ErrorCode = 61582.

Sad enough, this don't help much. Maybe another compile will show something
different. At last I could get lucky and getting the whole thing working. But
maybe just after some years. Better waiting for the next Indy update... :-(

Regards:
Ole Braad-Sorensen
www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-17 Thread Ole Braad-Sørensen
On Sun, 17 May 2009 11:32:30 +, you wrote:

Please show us what is returned (if anything) when you telnet the mail
server from the same machine from where you tried the C++ EXE.
Command prompt: telnet hostname 25.

The server responds with:
220 apollon.soholm.com ESMTP Sendmail 8.13.2 (and so on)

When I type: ehlo soholm.com it responds with:
250-apollon.soholm.com Hello [192.168.1.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERY
250-HELP

When I type: helo soholm.com it responds with:
250-apollon.soholm.com Hello [192.168.1.1], pleased to meet you

The answers do not match the errors I get from my program, no? :-)

Using telnet I can send a message. But a but clumsy...!

Regards:
Ole Braad-Sorensen
www.importshop.dk
-- 
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] Errorcode 23396 when trying to use TSmtpCli in C++

2009-05-17 Thread Arno Garrels
Ole Braad-Sørensen wrote:
 On Sun, 17 May 2009 11:32:30 +, you wrote:
 
 I saw similar problem with thttpcli and it went away when I cleaned
 and rebuilt the ICS package.
 
 Isn't life strange. I just updated using SVN, cleaned, rebuilt and
 installed the ICS package.
 
 Would you believe it. Now I don't get the errorcode 23396 anymore...!
 It has changed to ErrorCode = 61582.
 
 Sad enough, this don't help much. Maybe another compile will show
 something different. At last I could get lucky and getting the whole
 thing working. But maybe just after some years. Better waiting for
 the next Indy update... :-( 

All I can say is that it is working nicely with BCB in my little test
application. The problem must be IMO something on your side. 
You can sent me your project if you like by PM so I can test it with my
clean ICS installation. If the mail server is public please send me
its address as well.   

 
 Regards:
 Ole Braad-Sorensen
 www.importshop.dk
-- 
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