Page 1 of 1

Leer Gmail

Posted: Wed Feb 22, 2023 8:32 pm
by Pg_cts
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

Re: Leer Gmail

Posted: Thu Feb 23, 2023 12:26 am
by JoseAlvarez
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.

Re: Leer Gmail

Posted: Thu Feb 23, 2023 6:29 am
by Jimmy
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

Re: Leer Gmail

Posted: Fri Feb 24, 2023 10:36 am
by Pg_cts
Gracias por vuestras respuestas.

Un saludo

Re: Leer Gmail

Posted: Fri Feb 24, 2023 1:43 pm
by Enrico Maria Giordano
Is there an example to read the number of emails in a mailbox using curl?

Re: Leer Gmail

Posted: Sat Feb 25, 2023 5:11 am
by Lailton
You can use oAuth2 to read/send email.

Re: Leer Gmail

Posted: Sat Feb 25, 2023 5:43 am
by Jimmy
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 ) :?:

Re: Leer Gmail

Posted: Sat Feb 25, 2023 9:00 am
by Enrico Maria Giordano
Thank you. I don't think I'm going to use it, sorry.