FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Leer Gmail
Posts: 32
Joined: Thu Dec 07, 2017 10:26 AM
Leer Gmail
Posted: Wed Feb 22, 2023 08:32 PM

Buenas a todos,

Para un proyecto de reservas para un restaurante necesito leer los correos de una cuenta GMAIL.

Alguna orientación para leer estos correos?

En caso que desde GMAIL no se pueda por política de Google,

Se podrían leer de otro hosting?

Gracias

Posts: 851
Joined: Sun Nov 09, 2014 05:01 PM
Re: Leer Gmail
Posted: Thu Feb 23, 2023 12:26 AM

Saludos amigo.

Tengo entendido que gmail a restringido mucho los accesos desde fuentes que considera no confiables.

Por mi parte, solucioné usando un dominio propio y envío y recibo sin problemas, pero claro, es una solucion muy particular.

Es cuestión de buscar la alternativa para cada caso.

"Los errores en programación, siempre están entre la silla y el teclado..."



Fwh 19.06 32 bits + Harbour 3.2 + Borland 7.4 + MariaDB + TDolphin



Carora, Estado Lara, Venezuela.
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Leer Gmail
Posted: Thu Feb 23, 2023 06:29 AM

hi,

IMHO every Provider will switch to new Security Standard

when using TSmtp() or TPop3() : have a look which Version ssleay32.dll and libeay32.dll have (at least 1.02)

other Way is to use hbCURL to work with Gmail, GMX or Web.DE

as CURL is also now include in Windows OS i guess it is a "safe" Way for Future

greeting,

Jimmy
Posts: 32
Joined: Thu Dec 07, 2017 10:26 AM
Re: Leer Gmail
Posted: Fri Feb 24, 2023 10:36 AM

Gracias por vuestras respuestas.

Un saludo

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Leer Gmail
Posted: Fri Feb 24, 2023 01:43 PM

Is there an example to read the number of emails in a mailbox using curl?

Posts: 231
Joined: Fri Jul 20, 2012 01:49 AM
Re: Leer Gmail
Posted: Sat Feb 25, 2023 05:11 AM

You can use oAuth2 to read/send email.

Regards,

Lailton Fernando Mariano
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Leer Gmail
Posted: Sat Feb 25, 2023 05:43 AM
hi Enrico,
Enrico Maria Giordano wrote:Is there an example to read the number of emails in a mailbox using curl?
in HMG Forum you will find a Solution from EDK using hb_CURL() and IMAP
https://www.hmgforum.com/viewtopic.php?t=7289
look for File "imap_Curl.7z"

i "think" you will find Answer in that working Sample (GMail, GMX and Web.DE)

---

File include Source to build LIB for HMG / MinGW
how to build LIB for Fivewin ( BCC / MSVC ) :?:
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Leer Gmail
Posted: Sat Feb 25, 2023 09:00 AM

Thank you. I don't think I'm going to use it, sorry.

Continue the discussion