Reports by email
PunchPlus Web can email the daily and weekly reports to managers and each employee's punch card to the employee, automatically, once a day or once a week.
PunchPlus Web can send reports by email by itself: the daily report and the weekly report of the branch to the managers and assistant managers, and each employee's own punch card to that employee. Nothing is sent until you set it up: the mail server in Settings, then, in each employee's file, the reports that employee receives.
What is sent, and when
| Report | Who can receive it | When | Period |
|---|---|---|---|
| Daily report of the branch | Managers and assistant managers only | Every day, after the time Send at | The day before |
| Weekly report of the branch | Managers and assistant managers only | Once a week, on the day Weekly report and punch card on | The 7 days before that day |
| Own punch card | Any employee with an email address | Same day as the weekly report | The 7 days before that day |
The daily and weekly reports are those of the employee's branch, for every employee and department. The punch card is the employee's own only.
- Each message is sent once: PunchPlus Web keeps a line for each message and never sends the same one twice.
- If the weekly sending day was missed (for example the computer was off), the weekly report and the punch cards still leave up to 2 days later.
- If a message fails, it is tried again 30 minutes later, up to 5 times.
The message
The subject gives the report, the branch (or the employee's name for the punch card) and the dates. The message greets the employee and shows the report itself; the full report is also attached as a page (.html) to open in a browser and print with its Print button. If punches of the period were not calculated yet when the report left, the message says so at the top. Each message is in the Language of the emails of its recipient (in the employee's file), else in the language of Settings.
Who makes the messages leave
- On a store computer where PunchPlus Web is running: it checks about every minute.
- Online (on the web server): by the cron job of the web server, every 5 minutes (see Set up the cron job on the web server). Without the cron job, no report leaves online.
Set up sending by email
In the menu, click Settings, then go to the panel Reports by email.
| Field | What it does |
|---|---|
| Send the reports by email automatically | Turns the automatic sending on or off. |
| Send at | Time of day after which the reports are sent (07:00 by default). |
| Weekly report and punch card on | Day of the week the weekly reports and punch cards are sent (Sunday by default). |
| Sender address when the schedule has none | The address the reports are sent from when the employee's schedule has no sender address. |
| Server | The mail server (SMTP), for example mail.yourdomain.com. |
| Security | STARTTLS (port 587), SSL/TLS (port 465) or None (port 25). |
| Port | Leave blank to use the port of the security chosen. |
| User name and Password | The account of the mail server, usually the sending email address and its password. Once saved, the password shows "saved — leave blank to keep". |
- Fill the fields and click Save.
- Type your own address in Test address and click Send a test. The message "Test message sent to ..." confirms that it works; otherwise the error of the mail server is shown.
- Tick Send the reports by email automatically and click Save.
The list of messages sent
Under the buttons, a table shows the last messages: Sent (date and time), Report, Period, Recipient, Sender and Status (sent, failed with the reason, or sending).
Send the reports due now
Send the reports due now sends right away the reports of today that were not sent yet, without waiting for the Send at time. It is available when the mail server is set and automatic sending is on.
Choose who receives what
- In the menu, click Employees, then the employee.
- Type the employee's Email.
- In the panel Reports by email, choose the Management role: Employee, Assistant manager or Manager.
- Tick the reports: Daily report of the branch and Weekly report of the branch (only for a manager or an assistant manager: for an employee they are greyed out), and Own punch card.
- Click Save.
An email address is needed as soon as a report is ticked. The panel reminds you when the reports leave and from which address, and says if sending is not set up yet or turned off in Settings. It also lists the last messages sent to this employee.
Send now
To check, click Send now at the bottom of the employee's file: the latest reports ticked are sent right away (yesterday's daily report, the last complete week for the weekly report and the punch card), even if they were already sent and even if automatic sending is off. The button appears once the employee is saved with an email address and a report ticked, and the mail server is set.
Choose the sender address of each schedule
Each report can leave from the address of the store:
- In the menu, click Schedules, then the schedule.
- In the section Reports by email, type the Sender email for reports (for example
paie@yourdomain.com). - Click Save.
The reports of an employee leave from the address of the employee's schedule; if it has none, from the address of another schedule of the same branch; otherwise from Sender address when the schedule has none in Settings; otherwise from the User name of the mail server.
Set up the cron job on the web server
When PunchPlus Web runs online (on the web server), the reports leave only with the cron job:
- In Settings, panel Reports by email, copy the command shown under "add this cron job in cPanel".
- In cPanel, open Cron Jobs and add a job Once Per Five Minutes with that command.
The same cron job also sends the work schedules and the alerts by email, imports the watched folders and checks for updates. Details and checks: The cron job of the web server.