Thanks for trying, Hexor, but it says "Unknown username" for me. Tried with both "name" and "name@gmail.com", and with using my Gmail app password (which works with other apps). Seems this problem will never be solved for me.
This is literally what I'm using -> https://temp-file-share.web.app/d/yZaBLtd749
POP3 Include (crossplatform)
Re: POP3 Include (crossplatform)
I added a pop3s example in my libcurl package.
Re: POP3 Include (crossplatform)
For me it works with name@gmail.com and the app password.
Using the main password will end-up with unknown username/password.
Make sure to have the libtls.dll, if it is not found, the example will not tell you about it, but it would end-up in "Unknown username!", because it is using non-TLS mode.
I might extend the example a little bit
Using the main password will end-up with unknown username/password.
Make sure to have the libtls.dll, if it is not found, the example will not tell you about it, but it would end-up in "Unknown username!", because it is using non-TLS mode.
I might extend the example a little bit
Last edited by HeX0R on Sat Nov 18, 2023 11:01 am, edited 3 times in total.
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Re: POP3 Include (crossplatform)
Damn. Wonder why it doesn't like my details.
Re: POP3 Include (crossplatform)
I've added a warning popup to the example, when TLS is not active.
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Re: POP3 Include (crossplatform)
I can't win. This is so frustrating. Can you put it all in a working zip file for me? I don't know what's wrong.
My code:
Code: Select all
---------------------------
Warning
---------------------------
No TLS active!
Please check your libtls-xx.dll path
---------------------------
OK
---------------------------
Code: Select all
Global LIBTLSFILE$ = "libtls-15.dll" ; Same dir as main app, but even hard-coding it doesn't help.
XIncludeFile "pop3.pbi"
Global *pop3._POP3_ = CreatePop3Object() ;<- our pop3 interface
Global Pop3_Semaphore = CreateSemaphore() ;<- for our thread to inform us, that new Message arrived
Global Pop3_Mutex = CreateMutex() ;<- Mutex for the Linked List
Global NewList Tempfiles.s() ;<- all of our temp files we created. Delete afterwards
Global NewList Messages.i() ;<- Messages from threads to main
If TLSG\DLL = 0
MessageRequester("Warning", "No TLS active!" + #LF$ + "Please check your libtls-xx.dll path", #PB_MessageRequester_Warning)
EndIf
Re: POP3 Include (crossplatform)
https://hex0rs.coderbu.de/Sonstiges/pb/pop3.zip
(the dll is the x64 one, btw.)
(the dll is the x64 one, btw.)
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Re: POP3 Include (crossplatform)
I made some improvements.
Tested it successfully with my gmail and my gmx account.
Tested it successfully with my gmail and my gmx account.
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Re: POP3 Include (crossplatform)
Just woke up to a new day and your example in the zip file now works! Thanks! I've spent so long on this that I'm not going to compare old/new code to see why it was initially failing. Thank you again!
Re: POP3 Include (crossplatform)
... is there a way to get libtls.a for mac without compiling ? Or is it not that easy?