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...
WHMCS Solution 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 WHMCS Solution Posted Wednesday at 05:41 AM Solution Share Posted Wednesday at 05:41 AM @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 Wednesday at 06:56 AM Author Share Posted Wednesday at 06:56 AM (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 Wednesday at 07:05 AM by Dkuzik -1 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted 1 hour ago Author Share Posted 1 hour ago 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...
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.