Another 'Email not working thread' (Net_SMTP class missing?)

376 views
Skip to first unread message

Imrani Suppo

unread,
May 28, 2014, 8:45:57 AM5/28/14
to ice-hrm...@googlegroups.com
Hi,

Currently there seems to be a lot of users having problems with emails and IceHRM, I am also having difficulties currently and have set up the system to use SMTP with authentication as per http://icehrm-blog.gamonoid.com/configuring-email-settings.

No emails are ever sent, and the error log reports:

* [28-May-2014 13:06:48 Europe/London] PHP Fatal error:  Class 'Net_SMTP' not found in /testhrm/lib/Mail$

Once this was reported:
* [28-May-2014 12:28:46 Europe/London] [sendLeaveStatusChangedEmail] email is empty

additionally the error log is FULL of this:
[28-May-2014 12:53:55 Europe/London] Failed to determine HOME directory after trying "cd: 1: can't cd to ~" (exit $

I think some issues could be avoided, or at least help users to identify problems if there was a 'test email' button within the email settings page, that could check the config, then send a test email to itself and return an error(s) or success message.
icehrm.log

Thilina Hasantha

unread,
May 28, 2014, 11:36:59 AM5/28/14
to ice-hrm...@googlegroups.com
I think Net_SMTP module is not installed in your server. Please have a look http://pear.php.net/package/Net_SMTP/redirected


--
Web: http://icehrm.com
Blog: http://icehrm-blog.gamonoid.com
Bugs and Feature Requests: https://bitbucket.org/thilina/icehrm-opensource/issues
---
You received this message because you are subscribed to the Google Groups "ICE HRM Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ice-hrm-suppo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thilina Hasantha
TP: +94 722 33 67 47
http://lk.linkedin.com/in/thilinah
Message has been deleted
Message has been deleted

Imrani Suppo

unread,
May 30, 2014, 5:12:44 AM5/30/14
to ice-hrm...@googlegroups.com
Thanks to your help I have solved the mail issue Thilina. The problem was two-fold.

1) php-net-smtp was not installed on the server as you identified. - Perhaps this should be added to the things the installation script originally checks against?
2) In attempting to fix the problem previously before applying the net_smtp fix, I had tried to use the EmailSender.php you had posted here. This file also caused emails not to work and the system to become very sluggish whilst waiting for responses from the smtp server.

To conclude: Installing php-net-smtp on the server with "apt-get install php-net-smtp" and reverting to the original EmailSender.php class resolved all mail issues.

***

Still curious to know why the logs are filling with this though? Although it is unrelated to the email problem.
"[30-May-2014 09:47:42 Europe/London] Failed to determine HOME directory after trying "cd: 1: can't cd to ~" (exit $"

Haripratap Elduri

unread,
Jun 16, 2014, 11:46:54 AM6/16/14
to ice-hrm...@googlegroups.com
Hi All,

I have just installed the ICE HRM - but found that either my new user emails / Forgot Password Emails and leave Emails are not working .. Help in this is appriciated

1. Tried to go into settings - but found a blank screen could not found
2. i have installed this on windows based IIS Server

thanks in advance for the help

Regards,
Elduri Hari Pratap

Haripratap Elduri

unread,
Jun 21, 2014, 1:10:36 AM6/21/14
to ice-hrm...@googlegroups.com

gobi nath

unread,
Oct 14, 2014, 4:39:43 AM10/14/14
to ice-hrm...@googlegroups.com
Hi,

I have configured the email but i didn't get any email when apply the leave. am using cpanel and how to view the error log to identify the issue. 
Reply all
Reply to author
Forward
0 new messages