In the event that the client enters invalid information in the login fields, or if the client clicks WebMail login with no data in the form, the client is re-directed to the ChicagoNetTech SmarterMail login page.
Additionally, when the client logs out of SmarterMail, they are returned to their website's home page.
This solution offers a complete branding package, with the SmarterMail login integrated into the Client's website and saves a ton of support issues with their staff because they have a single point of login for everything - their website.
With some additional code checking, invalid password attempts could be directed back to be retried on the client's website, vs via the SmarterMail web interface. The same is true for password recovery or changes: with some additional coding or input checking, a complete, branded solution, could be developed for a customer, allowing them to maintain all webmail access directly from their website.
Additionally, some additional input checking could prevent a user from ever seeing the SmarterMail login landing page.
If you, or anyone else, requires assistance in the implementation, or further development of this code, for a particular client, please contact me directly.
If you create enhancements to the code, please share them back to me so I can create a central repository of these enhancements in our ChicagoNetTech portal.