gamonoid / icehrm

Manage your employees easily with a robust and efficient Human Resource Management System
http://icehrm.com
Other
579 stars 373 forks source link

ICEHRM gmail setup #242

Open tsoifun opened 3 years ago

tsoifun commented 3 years ago

gmail's smtp using TLS for authentication. How to enable it in settings? Where to find log to be sure that the problem is with TLS authenticaiton?

AnAxNu commented 2 years ago

The log/debug can be turned on under System -> Settings -> System and then "System: Debug mode". ice_hrm_debug Then debug info will be save in app/data/icehrm.log

These are the Gmail settings that can be used: ice_hrm_mail_settings

To use SMTP, for Gmail, Net_SMTP must be installed: sudo apt install php-pear sudo pear install Net_SMTP

If you are using you own domain with gmail (the mail address ends in yourcompany.com instead of gmail.com) then you need to either enable "less secure apps" in Gmail or use an "application specific password". The application specific password is the better solution. All info about that can be found here: https://support.google.com/a/thread/108782439?hl=en&msgid=108963583

This info is what I used for ICE HRM v31.0.0.0 OpenSource on a virtual server running Ubuntu 20.04 using PHP 7.4 FPM (PHP 8.x doesn't work).