Exception Alerts Not Emailing

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Exception Alerts Not Emailing

Post by cvcomputers »

It would be very helpful if we received an email every time there's an Exception triggered in TimeTrex.

Exceptions are being generated and can be viewed from Attendance>Exceptions, but no emails are being received by any employees or supervisors. A hierarchy is setup to email both.

TimeTrex is hosted on 8.1 PC on same network as majority of punches. Verified the auto-created automated task php-win.exe is running every minute. No errors in Event Log for this task.

Any ideas?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Alerts Not Emailing

Post by shaunw »

Have you received any emails from TimeTrex? The best way to test is to use the "Forgot Password" link on the TimeTrex login screen.
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Re: Exception Alerts Not Emailing

Post by cvcomputers »

Thanks for the prompt reply! I just tested this, and have not received a password reset email after 15 minutes.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Alerts Not Emailing

Post by shaunw »

Under Help -> About, what is your Registration Key, and what email address are you testing with?
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Re: Exception Alerts Not Emailing

Post by cvcomputers »

36224ee06051e1bab6ce63d45d9e1853

Testing with Office365 email accounts (domain is @mailcvc.com, my address is daniel@mailcvc.com). Also testing with Gmail accounts, but not receiving emails at either account.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Alerts Not Emailing

Post by shaunw »

Do you have any SMTP settings specified in your timetrex.ini.php file?
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Re: Exception Alerts Not Emailing

Post by cvcomputers »

This is what I found in the .php file:

[mail]
; Least setup, deliver email through TimeTrex's email relay via SOAP (HTTP port 80)
delivery_method = soap
; Deliver email through local sendmail command specified in php.ini
; delivery_method = mail
; Deliver email through remote SMTP server with the following settings.
; delivery_method = smtp
; smtp_host=smtp.gmail.com
; smtp_port=587
; smtp_username=timetrex@gmail.com
; smtp_password=testpass123
;
; Cache settings
;
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Alerts Not Emailing

Post by shaunw »

Try defining the SMTP mail delivery settings and see if that works for you.
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Re: Exception Alerts Not Emailing

Post by cvcomputers »

I have done that (removed the semi-colons) - still not getting any emails from Forgot Password link for testing. I tried other SMTP server settings (we have an SMTP server on-premise) and this wasn't successful either.

Is there another .ini file I need to be looking at that the timetrex.ini.php pulls from?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Alerts Not Emailing

Post by shaunw »

Enable debug logging as described here: http://forums.timetrex.com/viewtopic.php?f=6&t=89

Then try triggering another email to be sent from TimeTrex and look at the log file for any errors.
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Re: Exception Alerts Not Emailing

Post by cvcomputers »

I'm not seeing a log file being created.

In the timetrex.ini.php file, I have this:
[debug]
buffer_output = TRUE
enable = TRUE
enable_display = TRUE
enable_log = TRUE
; Set to false if you're debugging
production = TRUE
verbosity = 10

In the php.ini file, I have this:
; Log errors to specified file.
error_log = debuglog.txt

What am I doing wrong?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Alerts Not Emailing

Post by shaunw »

Try specifying a full path to the error log, like: /tmp/timetrex_error.log
cvcomputers
Posts: 7
Joined: Mon May 18, 2015 9:25 am

Re: Exception Alerts Not Emailing

Post by cvcomputers »

I have changed it to the follow, but still no log file showing up. I ensured that "Everyone" has Full Control of the destination.

; Log errors to specified file.
error_log = C:\Users\Admin\Desktop\Logs\error.log

I've also tried doing it to a folder right on the C drive, but still no luck.
Post Reply