Dkuzik Posted February 24 Share Posted February 24 Hello, where are smtp settings stored in database? I thought they would be in tblconfiguration but it isnt. search for smtp in phpadmin but it comes up with nothing. 0 Quote Link to comment Share on other sites More sharing options...
Azhar Patel Posted February 25 Share Posted February 25 You can use same with Config global variable global $CONFIG; print_r($CONFIG); 0 Quote Link to comment Share on other sites More sharing options...
Solution Azhar Patel Posted March 5 Solution Share Posted March 5 @Dkuzik in $_CONFIG you will get "MailConfig" element, You need to decrypt() the value of MailConfig. The decrypted value will return JSON containing SMTP setting. You can use the API to decrypt Data https://developers.whmcs.com/api-reference/decryptpassword/ 1 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted March 5 Author Share Posted March 5 (edited) 1 hour ago, WHMCS Solution said: @Dkuzik in $_CONFIG you will get "MailConfig" element, You need to decrypt() the value of MailConfig. The decrypted value will return JSON containing SMTP setting. You can use the API to decrypt Data https://developers.whmcs.com/api-reference/decryptpassword/ Thank u very much. I can extract data. Now let's see if I can make it work for me. For some reason decryptpassword() didn't work for me. decrypt () worked Edited March 5 by Dkuzik -1 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted March 9 Author Share Posted March 9 21 hours ago, WHMCS Solution said: You can use same with Config global variable global $CONFIG; print_r($CONFIG); This shows a lot of configuration but doesnt show smtp settings 0 Quote Link to comment Share on other sites More sharing options...
Azhar Patel Posted March 9 Share Posted March 9 On 3/5/2025 at 11:11 AM, WHMCS Solution said: @Dkuzik in $_CONFIG you will get "MailConfig" element, You need to decrypt() the value of MailConfig. The decrypted value will return JSON containing SMTP setting. You can use the API to decrypt Data https://developers.whmcs.com/api-reference/decryptpassword/ Check this 0 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.