Page 1 of 3
xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 1:31 pm
by karinha
xHarbour with SSL/TLS - Master Enrico.
Master Enrico, anything new?
xHarbour con SSL / TLS - Master Enrico.
Maestro Enrico, ¿algo nuevo?
I need to use Office365, with SSL / TLS
Necesito usar Office365, con SSL/TLS
Many thanks. Muchas gracias.
Regards, saludos.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 1:38 pm
by Enrico Maria Giordano
Sorry, I didn't understand your question. Could you be more explicit, please?
EMG
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 1:55 pm
by karinha
Master Enrico, I need to send emails via Microsoft's Office365 directly from my program.
Which library to use TLS and Cryptography: STARTTLS?
Do you have a new version of xHarbour that is already possible to send emails via TLS / STARTTLS?
Thank you.
https://support.microsoft.com/pt-br/off ... 6c4ac95353
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 1:58 pm
by karinha
It would be the configuration:
Server:
smtp.office365.com
Port: 587
Cryptography: STARTTLS
Regards, saludos.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 2:12 pm
by karinha
Master Enrico, are these the only LIBs for Email control?
Code: Select all
29/10/2020 16:15 395.264 hbssl.lib
29/10/2020 16:15 115.200 tipssl.lib
Regards, saludos.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 2:25 pm
by Enrico Maria Giordano
Sorry, I can't help you since I cannot make tests. Could you provide me the access data to the server?
EMG
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 2:49 pm
by karinha
Master Enrico, just create an email account at office365.com.
Do you have contact with master Patrick Mast of the xHarbour project? Perhaps, he has some solution to this problem.
Regards, saludos.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 2:56 pm
by Enrico Maria Giordano
Master Enrico, just create an email account at office365.com.
Please, create the account yourself and send me the required data.
Do you have contact with master Patrick Mast of the xHarbour project? Perhaps, he has some solution to this problem.
What is the problem, exactly? Anyway, I doubt that Patrick is still involved with xHarbour project. His last contribution dates back to 2018.
EMG
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 3:36 pm
by karinha
Ready Enrico. I created a Microsoft account. How do I send the data and password to the master?
https://i.imgur.com/cqiI6TZ.png
Regards, saludos.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Wed Dec 02, 2020 3:47 pm
by Enrico Maria Giordano
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Fri Dec 04, 2020 5:44 pm
by karinha
Example, ejemplo, exemplo con outlook.com de Microsoft.
Download:
https://mega.nz/file/ZY0lCC4b#J087eB2aP ... ifxl_41Qco
Regards, saludos.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Sat Dec 05, 2020 2:26 pm
by Enrico Maria Giordano
It works!
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL cFrom := "karinhafwh@outlook.com"
LOCAL cServer := "smtp.office365.com"
LOCAL cTo := "e.m.giordano@emagsoftware.it"
LOCAL cSubject := "Test message"
LOCAL cMessage := "This is a test message."
LOCAL cUser := "karinhafwh@outlook.com"
LOCAL cPassword := "yourpassword"
LOCAL cPort := "587"
LOCAL lTLS := .T.
? HB_SENDMAIL( cServer, VAL( cPort ), cFrom, { cTo }, , , cMessage, cSubject, , cUser, cPassword, , , , , , , , , , , , lTLS )
RETURN NIL
EMG
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Sat Dec 05, 2020 3:38 pm
by karinha
No funciona. Example complete?
Regards.
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Sat Dec 05, 2020 4:08 pm
by Enrico Maria Giordano
The sample is complete and working fine. Of course, you must link tipssl.lib, libssl.lib and libcrypto.lib and put libcrypto-1_1.dll and libssl-1_1.dll in the same directory of the EXE (or in the system directory).
EMG
Re: xHarbour with SSL/TLS - Master Enrico.
Posted: Sun Dec 06, 2020 1:45 am
by karinha
Seriously? You have my password, send me a test email from your example, please. Does anyone else testify that this example from Mr. Enrico works? Where do I find these updated LIBS? When I post an example, I post complete and working. Thanks.
Regards, saludos.