Jump to content

Badnaf

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by Badnaf

  1. Badnaf

    “Could not load SSL library”

    Hey, I am creating a school project where for the registration part, users type in their email and the program sends a generated verification code to their real-life email (Gmail). I'm trying to send a verification code to their email using Gmail's SMTP server through Indy components. Components I’m using: TIdSMTP: to connect to Gmail's SMTP and send the email TIdMessage: to define the email content (from, to, subject, body) TIdSSLIOHandlerSocketOpenSSL: to enable TLS/SSL encryption Delphi is set to build in 32-bit Windows I added libeay32.dll and ssleay32.dll to the folder where the .exe is located All my code compiles and the UI runs fine Email setup appears correctly (SMTP host: smtp.gmail.com, Port: 587, TLS enabled, app password used) The issue: When I click the button to send the email, I get this error: Could not load SSL library I downloaded what I thought was the correct OpenSSL 1.0.2u (32-bit) from GitHub, but the files seem incorrect or too small (e.g., 1.3MB instead of 2.5MB). Also, I couldn’t find any actual releases section on the OpenSSL GitHub page for the Indy-specific binaries. What I need help with: Where can I get the correct OpenSSL 1.0.2u 32-bit (light) DLLs that work with Delphi and Indy? Is there anything else I may be doing wrong with loading the SSL library? Should the SSL DLLs be placed somewhere other than next to the .exe? Any guidance or links to working binaries would be really appreciated! Thank you 🙏 I am not too experienced send emails and handeling communication using the internet through delphi so I am sorry if I did things stupidly, also, I am still busy with my GUI, I just wanted the program to send the email before fixing everything else.
  2. Badnaf

    “Could not load SSL library”

    Thank you, I did not notice that, sorry. I don't know why but as soon as I used the function and put the 'IdSSLOpenSSLHeaders' in the unit section, everything worked seamlessly, thank you so much for you support, I know you are just as surprised about how quickly this issue was resolved.🙏
×