xHarbour with SSL/TLS - Master Enrico.

User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

xHarbour with SSL/TLS - Master Enrico.

Post 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.
João Santos - São Paulo - Brasil
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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
João Santos - São Paulo - Brasil
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post by karinha »

It would be the configuration:
Server:

smtp.office365.com

Port: 587

Cryptography: STARTTLS

Regards, saludos.
João Santos - São Paulo - Brasil
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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.
João Santos - São Paulo - Brasil
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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.
João Santos - São Paulo - Brasil
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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

Image

Regards, saludos.
João Santos - São Paulo - Brasil
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post by karinha »

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

Download:

https://mega.nz/file/ZY0lCC4b#J087eB2aP ... ifxl_41Qco

Regards, saludos.
João Santos - São Paulo - Brasil
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post by karinha »

No funciona. Example complete?

Regards.
João Santos - São Paulo - Brasil
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xHarbour with SSL/TLS - Master Enrico.

Post 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.
João Santos - São Paulo - Brasil
Post Reply