Discussion:
xharbour log system
(too old to reply)
Claude R
2024-01-27 16:19:20 UTC
Permalink
Hello,
I used until now the integrated log system like this:
Init log Console(HB_LOG_INFO);
File( HB_LOG_WARNING, "Log_Chaine.txt",10000 );
Email (HB_LOG_ERROR , "Log","smtp.xx.xx","***@xxx.xx","Error log","***@xx.xx")
All infos are displayed in console.
All warnings are written to a file.
All important errors are directly sent to me by mail.

Now my smtp requires SSL/TLS with port 587, no other way...
I see no direct solution how to avoid to make bigger changes in my code, as I write already to a file. Two output files with different Error levels are not supported.

This would be something useful to implement. Or introduce SSL/TLS.
I have not the knowledge to implement this unfortunately.

best regards,
Claude
Enrico Maria Giordano
2024-01-27 17:45:36 UTC
Permalink
Post by Claude R
Now my smtp requires SSL/TLS with port 587, no other way...
You have just to use:

tipssl.lib
libssl.lib
libcrypto.lib

and the related DLLs:

libssl-3.dll
libcrypto-3.dll
--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Claude R
2024-01-28 11:59:10 UTC
Permalink
Enrico,
actually I use last xhb commercial enterprise edition.
Parameters of email log channels are described as follows:
<nPrioMail> optional Numeric priority level of log channel
<cHelo> optional Character string sent with the HELO command of the SMTP protocol.
<cServer> required Character string specifying the mail server.
<cMailTo> required Character string specifying the mail address of the receipient.
<cSubject> optional Character string specifying the subject line of the eMail.
<cFrom> optional Character string specifying the mail address of the sender.

I don't see how to specify secure connection with authentification.
Using hb_sendmail, the following works for me:
hb_SendMail("smtp.xx.xx",587,"***@xx.xx", {"***@xx.xx"},,, "Subject", "Body text",, "***@xx.xx", "password", "pop.xx.xx" , 3, .f. , .t., , , ,"***@xx.xx")

Now how to implement this in log channel, through HELO command ?

I downloaded latest Open SSL 3.2 32 bit version, and added tipssl.lib from commercial package, libssl.lib and libcrypto.lib
from OpenSSL VC MD versions. It compiled normally. libssl-3.dll and libcrypto-3.dll are in the program folder. But no mail does pass.
Now I suppose that authentification is missing.
Thank you for any help.
Claude
Post by Enrico Maria Giordano
Post by Claude R
Now my smtp requires SSL/TLS with port 587, no other way...
tipssl.lib
libssl.lib
libcrypto.lib
libssl-3.dll
libcrypto-3.dll
--
Enrico Maria Giordano
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Enrico Maria Giordano
2024-01-28 13:33:19 UTC
Permalink
Post by Claude R
Enrico,
actually I use last xhb commercial enterprise edition.
<nPrioMail> optional Numeric priority level of log channel
<cHelo> optional Character string sent with the HELO command of the SMTP protocol.
<cServer> required Character string specifying the mail server.
<cMailTo> required Character string specifying the mail address of the receipient.
<cSubject> optional Character string specifying the subject line of the eMail.
<cFrom> optional Character string specifying the mail address of the sender.
I don't see how to specify secure connection with authentification.
Now how to implement this in log channel, through HELO command ?
I downloaded latest Open SSL 3.2 32 bit version, and added tipssl.lib from commercial package, libssl.lib and libcrypto.lib
from OpenSSL VC MD versions. It compiled normally. libssl-3.dll and libcrypto-3.dll are in the program folder. But no mail does pass.
Now I suppose that authentification is missing.
Thank you for any help.
Please provide a little but complete sample to test here.
--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Enrico Maria Giordano
2024-01-28 13:33:52 UTC
Permalink
Post by Claude R
actually I use last xhb commercial enterprise edition.
I can't help you on xhb commercial, sorry.
--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Claudio H
2024-01-29 17:36:58 UTC
Permalink
Claude

Read this thread, you'll find all necessary info to make it work with the un-updated last version of xhb.com:
https://groups.google.com/g/comp.lang.xharbour/c/ffZYASeiTJk/m/bjmCJaJ5BAAJ

Regards
Claudio H
Claude R
2024-01-30 08:24:07 UTC
Permalink
Enrico and Claudio,
Thank you for your help.
I will study this in the next days.

Best regards,
Claude
Post by Claude R
Claude
https://groups.google.com/g/comp.lang.xharbour/c/ffZYASeiTJk/m/bjmCJaJ5BAAJ
Regards
Claudio H
Loading...