rkzm Posted August 28, 2019 Share Posted August 28, 2019 When my clients attempt to log into webmail from the client panel they are directed to my server shared IP address port 2096. This is not a secure connection. How can I configure WHMCS so that they are directed to their domain:2096 which has SSL and resolves to https. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 29, 2019 Share Posted August 29, 2019 19 hours ago, rkzm said: When my clients attempt to log into webmail from the client panel they are directed to my server shared IP address port 2096. This is not a secure connection. How can I configure WHMCS so that they are directed to their domain:2096 which has SSL and resolves to https. you could use the action hook in the thread below - just create a new .php file in /includes/hooks, paste the code into it and it will change the cPanel and webmail links. however, in your case, you only want to change webmail (and not cPanel), so the hook code should just need to be... <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $service = Menu::context('service'); $domain = $service->domain; $servertype = $service->product->servertype; # Not cPanel, no links added if ($servertype!="cpanel"){ return; } if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->getChild('Login to Webmail') ->setUri('http://'.$domain.':2096'); } }); 0 Quote Link to comment Share on other sites More sharing options...
rkzm Posted August 30, 2019 Author Share Posted August 30, 2019 Thanks Brian! The webmail links have been changed to domain port 2096 as desired. Have a great day 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.