Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
emailstaffnotification [2018/06/22 15:36] – created Michael Scott | emailstaffnotification [2019/08/01 17:33] (current) – List of topics Michael Scott | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Email Group Notifications ====== | ====== Email Group Notifications ====== | ||
- | | + | Email Group Notifications provide a mechanism for maintaining single or groups of email addresses for use by Jobs and iqxWEB when distributing messages reports etc. Individual email addresses etc can then be changed in IQX without having to edit the jobs each time. |
+ | |||
+ | | ||
* Email Address - can be one or more recipient addresses, separated by commas or semicolons | * Email Address - can be one or more recipient addresses, separated by commas or semicolons | ||
- | | + | |
+ | | ||
+ | * Supported tokens are: | ||
+ | * {personid} | ||
+ | * {companyid} | ||
+ | * {vacancyid} | ||
+ | * {loadform} to start a hyperlink, matched by {/loadform} to end it | ||
* Division and Department can be used to narrow down the recipients for a particular notification. If they are left blank this recipient will receive all notifications for the topic | * Division and Department can be used to narrow down the recipients for a particular notification. If they are left blank this recipient will receive all notifications for the topic | ||
- | **Note: a scheduled job, EmailStaffNotifier.xml or equivalent, must be running to do the actual sending. | + | A Scheduled Job, EmailStaffNotifier.xml or equivalent, must be running to do the actual sending. |
- | ** | + | <Job title=" |
+ | < | ||
+ | < | ||
+ | < | ||
+ | select id, topic, body, hyperlink, departmentid, | ||
+ | from EmailStaffNotification | ||
+ | where Dispatched is null and Requested > current date - 3 | ||
+ | ]]> | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <If x1=" | ||
+ | < | ||
+ | < | ||
+ | <If x1=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | There are two alternative functions which can be invoked from a web net procedure or anywhere else:< | ||
+ | |||
+ | This is used to directly specify the body of the email. | ||
+ | |||
+ | pTopic links to the Topic in Maintenance | Agency Setup | Email Group Notifications. pBody is the body text. pHyperLink is an optional woodpecker form to load, with parameters e.g. person/xxxx where xxxx is a personid. The generated hyperlink will be appended to the body text. pDepartmentID and pDivisionID will be used to narrow down who receives the emails from the recipients specified in Maintenance | Agency Setup | Email Group Notifications. | ||
+ | |||
+ | Alternatively the Message Text can be specified in Maintenance | Agency Setup | Email Group Notifications containing tokens like {loadform} | ||
+ | & {personid} (see above) and the alternative call used:< | ||
+ | in pTopic char(50),in pPersonID char(20) default null,in pCompanyID char(20) default null,in pVacancyID char(20) default null,in pDepartmentID char(2) default null,in pDivisionID char(20) default null )</ |