DeHeus Posted February 20, 2019 Share Posted February 20, 2019 I try to sent an e-mail using the Indy SMTP component, but I keep getting the error Failed to load libeay32.dll, no matter where I place the DLL's, it will not sent the e-mail. The website runs as an ISAPI module in IIS, server OS is Windows 2016. DLL's are placed in C:\Windows\System32 and the folder where ISAPI dll is placed. It works nice on my local machine, but throws error on the server. We need SSL support as we are sending via office365. The code: iSMTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(iSMTP); iSMTP.UseTLS := utUseExplicitTLS; TIdSSLIOHandlerSocketOpenSSL(iSMTP.IOHandler).SSLOptions.Method := sslvTLSv1_2; iSMTP.Host := 'fromsettings'; iSMTP.Port := 587; iSMTP.AuthType := satDefault; iSMTP.Username := 'fromsettings'; iSMTP.Password := 'fromsettings'; iSMTP.Connect; iSMTP.Send(iMessage); //<-- This throws error What am I missing? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 20, 2019 Share Posted February 20, 2019 Can you please specify first which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
DeHeus Posted February 20, 2019 Author Share Posted February 20, 2019 On my machine: UniGui Professional Edition Version 1.70.0.1485. On the server the following runtimes are installed: 1.0.0.1423 1.70.0.1485 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 20, 2019 Share Posted February 20, 2019 16 minutes ago, ArieKanarie said: On my machine: UniGui Professional Edition Version 1.70.0.1485. Please adjust your forum email address: Quote Link to comment Share on other sites More sharing options...
DeHeus Posted February 20, 2019 Author Share Posted February 20, 2019 6 minutes ago, Sherzod said: Please adjust your forum email address: Done Quote Link to comment Share on other sites More sharing options...
DeHeus Posted February 27, 2019 Author Share Posted February 27, 2019 Does anyone have a solution or tips? We're still facing this issue Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 27, 2019 Administrators Share Posted February 27, 2019 Is your dll 64 bit? Quote Link to comment Share on other sites More sharing options...
DeHeus Posted February 28, 2019 Author Share Posted February 28, 2019 You mean the DLL of my UniGui project? It's 32bit (Target platform is Win32). I found the libeay32 and ssleay32 dll in C:\Program Files (x86)\FMSoft\Framework\uniGUI\SSL\dll\, from there I tried both the dll's from the x86 and x64 folder. But none work. Tried copying to same folder as UniGui DLL and to C:\Windows\System32. Do I need install them, instead of just copying? The only thing I haven't tried is rebooting the server. It's a production server so I hope I can avoid that. Quote Link to comment Share on other sites More sharing options...
billyChou Posted March 17, 2019 Share Posted March 17, 2019 i use unigui call EAGetMail POP3/IMAP4 Component send mail from gmail , two year. EASendMail ActiveX Object Quote Link to comment Share on other sites More sharing options...
Michel Bernabela Posted April 5, 2021 Share Posted April 5, 2021 Hello to all, I am facing the same problem. Having an ISAPI module running on an IIS server. running on desktop windows machine email is sent successfully. But on the server via the ISAPI module in IIS it is not sending out the email. Have anyone solved this? Hope you can help me... Regards, Michel Quote Link to comment Share on other sites More sharing options...
alfr Posted April 5, 2021 Share Posted April 5, 2021 You need then to put the 32-bit versions of libeay32 and ssleay32 dll in the Windows\SYSWOW64 folder. (I agree that it is easy to believe that this folder is for 64-bit dlls, but it is the other way around because of historic reasons I believe. ) (Another options is probably to make sure your path is adjusted with an early entry pointing to your folder containing the libeay and ssleay) Quote Link to comment Share on other sites More sharing options...
Michel Bernabela Posted April 5, 2021 Share Posted April 5, 2021 Hello to all, I am facing the same problem. Having an ISAPI module running on an IIS server. running on desktop windows machine email is sent successfully. But on the server via the ISAPI module in IIS it is not sending out the email. Have anyone solved this? Hope you can help me... Regards, Michel Quote Link to comment Share on other sites More sharing options...
Michel Bernabela Posted April 5, 2021 Share Posted April 5, 2021 Hi alfr, I thank you so much. Indeed, this did work for me and now the mails are being sent. Many thnx for this tip. Bravoooo...:-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.