xHarbour with SSL/TLS - Master Enrico.

xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Wed Dec 02, 2020 1:31 pm

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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby Enrico Maria Giordano » Wed Dec 02, 2020 1:38 pm

Sorry, I didn't understand your question. Could you be more explicit, please?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Wed Dec 02, 2020 1:55 pm

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/office/configura%C3%A7%C3%B5es-de-email-pop-e-imap-para-o-outlook-8361e398-8af4-4e97-b147-6c6c4ac95353
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Wed Dec 02, 2020 1:58 pm

It would be the configuration:
Server:

smtp.office365.com

Port: 587

Cryptography: STARTTLS

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Wed Dec 02, 2020 2:12 pm

Master Enrico, are these the only LIBs for Email control?

Code: Select all  Expand view

29/10/2020  16:15           395.264 hbssl.lib
29/10/2020  16:15           115.200 tipssl.lib
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby Enrico Maria Giordano » Wed Dec 02, 2020 2:25 pm

Sorry, I can't help you since I cannot make tests. Could you provide me the access data to the server?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Wed Dec 02, 2020 2:49 pm

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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby Enrico Maria Giordano » Wed Dec 02, 2020 2:56 pm

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
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Wed Dec 02, 2020 3:36 pm

Ready Enrico. I created a Microsoft account. How do I send the data and password to the master?

https://i.imgur.com/cqiI6TZ.png

Image

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Fri Dec 04, 2020 5:44 pm

Example, ejemplo, exemplo con outlook.com de Microsoft.

Download:

https://mega.nz/file/ZY0lCC4b#J087eB2aPhfZiNynwgaEnkwvrPF2P6y7Pifxl_41Qco

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby Enrico Maria Giordano » Sat Dec 05, 2020 2:26 pm

It works!

Code: Select all  Expand view
#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
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Sat Dec 05, 2020 3:38 pm

No funciona. Example complete?

Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Postby Enrico Maria Giordano » Sat Dec 05, 2020 4:08 pm

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
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xHarbour with SSL/TLS - Master Enrico.

Postby karinha » Sun Dec 06, 2020 1:45 am

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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: George, Google [Bot], nageswaragunupudi and 25 guests