Leer Gmail

Leer Gmail

Postby Pg_cts » Wed Feb 22, 2023 8: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
Pg_cts
 
Posts: 32
Joined: Thu Dec 07, 2017 10:26 am

Re: Leer Gmail

Postby JoseAlvarez » 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.
User avatar
JoseAlvarez
 
Posts: 797
Joined: Sun Nov 09, 2014 5:01 pm

Re: Leer Gmail

Postby Jimmy » Thu Feb 23, 2023 6: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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Leer Gmail

Postby Pg_cts » Fri Feb 24, 2023 10:36 am

Gracias por vuestras respuestas.

Un saludo
Pg_cts
 
Posts: 32
Joined: Thu Dec 07, 2017 10:26 am

Re: Leer Gmail

Postby Enrico Maria Giordano » Fri Feb 24, 2023 1:43 pm

Is there an example to read the number of emails in a mailbox using curl?
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Leer Gmail

Postby Lailton » Sat Feb 25, 2023 5:11 am

You can use oAuth2 to read/send email.
Regards,
Lailton Fernando Mariano
User avatar
Lailton
 
Posts: 153
Joined: Fri Jul 20, 2012 1:49 am
Location: Brazil

Re: Leer Gmail

Postby Jimmy » Sat Feb 25, 2023 5: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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Leer Gmail

Postby Enrico Maria Giordano » Sat Feb 25, 2023 9:00 am

Thank you. I don't think I'm going to use it, sorry.
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests