Users: refactor settings code for getting the default email client
Users: refactor settings code for getting the default email client

Move the code for figuring out the user email client type in one
public method so it can be used from other places and to reduce
code duplication.

lionixevolve/LionixCRM,dfstrauss/SuiteCRM,Dillon-Brown/SuiteCRM,lionixevolve/SuiteCRM,willrennie/SuiteCRM,lionixevolve/SuiteCRM,lionixevolve/SuiteCRM,JimMackin/SuiteCRM,samus-aran/SuiteCRM,JanSiero/SuiteCRM,gody01/SuiteCRM,willrennie/SuiteCRM,JimMackin/SuiteCRM,lionixevolve/LionixCRM,lionixevolve/LionixCRM,salesagility/SuiteCRM,cumanacr/SuiteCRM,cumanacr/SuiteCRM,JimMackin/SuiteCRM,Dillon-Brown/SuiteCRM,ChangezKhan/SuiteCRM,pribeiro42/SuiteCRM,pribeiro42/SuiteCRM,lionixevolve/SuiteCRM,cumanacr/SuiteCRM,gody01/SuiteCRM,horus68/SuiteCRM-Horus68,pribeiro42/SuiteCRM,MikeyJC/SuiteCRM,samus-aran/SuiteCRM,JimMackin/SuiteCRM,dfstrauss/SuiteCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,MikeyJC/SuiteCRM,salesagility/SuiteCRM,gody01/SuiteCRM,MikeyJC/SuiteCRM,horus68/SuiteCRM-Horus68,horus68/SuiteCRM-Horus68,lionixevolve/LionixCRM,dfstrauss/SuiteCRM,salesagility/SuiteCRM,pribeiro42/SuiteCRM,lionixevolve/LionixCRM,horus68/SuiteCRM-Horus68,gcoop-libre/SuiteCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,ChangezKhan/SuiteCRM,MikeyJC/SuiteCRM,willrennie/SuiteCRM,gody01/SuiteCRM,Dillon-Brown/SuiteCRM,cumanacr/SuiteCRM,gcoop-libre/SuiteCRM,JanSiero/SuiteCRM,salesagility/SuiteCRM,gcoop-libre/SuiteCRM,JanSiero/SuiteCRM,willrennie/SuiteCRM,Dillon-Brown/SuiteCRM,JanSiero/SuiteCRM,ChangezKhan/SuiteCRM,daniel-samson/SuiteCRM,dfstrauss/SuiteCRM,ChangezKhan/SuiteCRM,lionixevolve/LionixCRM,daniel-samson/SuiteCRM,gcoop-libre/SuiteCRM