Job alerts
Candidates can get an email with new jobs that match their preferences. The email is sent by a cron job that calls a web address of your site once a day.
What candidates do
- In their profile, they choose their Fields and Locations under Preferred Jobs. They can also choose a Time and a Contract Relation, and values for the custom fields you allow.
- They tick Receive alerts about new job offers, on registration or in Account Settings.
Who gets an alert
A candidate gets the email when:
- the candidate profile is published and the Joomla user is not blocked,
- alerts are turned on in the profile,
- the profile has at least one preferred field and at least one preferred location,
- at least one new job matches.
Which jobs are in it
The email lists jobs that went online since the last run, by default since yesterday, and are not expired. A job is included when one of its fields or one of its locations is among the candidate's preferences. When the candidate chose a time type or a contract type, the job must have it.
The jobs are grouped: first the jobs that match all preferences, then the jobs that match some of them. At most 15 jobs are sent per email.
Custom fields in alerts
Choose custom fields of jobs in Allowed Custom Fields for Job Alerts on the Candidate Profile tab of the options. Candidates then see them in Preferred Jobs, and a job is only sent when its value matches the candidate's choice. The supported field types are listed in the description of the option.
Set up the cron job
- Open Options > Other and enter your own secret in Cron Task Key. The alert does not run while the key is empty or still
brekeke, the value in the field after installing. - Click Save.
- Create a cron job on your server, or in your hosting control panel, that opens this address once a day:
https://www.example.com/index.php?option=com_easyjobsmanager&task=misc.notify_new_jobs&key=YOURKEY
For example with curl:
0 7 * * * curl -s "https://www.example.com/index.php?option=com_easyjobsmanager&task=misc.notify_new_jobs&key=YOURKEY" > /dev/null
See Cron jobs for the other options of this address and for testing.
The email
The text is the EasyJobsManager: Job alert digest (to candidate) template in System > Mail Templates, with the subject "New Jobs corresponding to your preferences on {SITENAME}". It has the tags {NAME}, {SITENAME}, {SITEURL}, {JOBS_MATCH_ALL}, {JOBS_MATCH_SOME}, {PREFERENCES} and {UNSUBSCRIBE_LINK}. See Email templates.
The unsubscribe link turns off alerts for that candidate without a login. It is signed with your site's secret, so it cannot be guessed for another candidate.
Logs
Each run writes to easyjobsmanager_job_alert.log.php in Joomla's log folder (System > Global Configuration > System > Path to Log Folder). It lists how many candidates were checked and which emails were sent or failed.