Commit 4d153683 authored by cividesk's avatar cividesk

More template tweaks and go live!

parent 1cfa0eb2
...@@ -4,8 +4,8 @@ require_once('config.php'); ...@@ -4,8 +4,8 @@ require_once('config.php');
$alerts = array( $alerts = array(
array( array(
'recipients' => array('nicolas@cividesk.com'), 'recipients' => array('civicrm-secteam@lists.civicrm.org'),
'subject' => '[CiviCRM] Weekly security issues status', 'subject' => '[CiviCRM] Weekly security issues recap',
'query' => " 'query' => "
SELECT issue, CONCAT('https://issues.civicrm.org/jira/browse/', issue) AS issue_url, summary, SELECT issue, CONCAT('https://issues.civicrm.org/jira/browse/', issue) AS issue_url, summary,
priority, status, assignee priority, status, assignee
...@@ -16,8 +16,8 @@ $alerts = array( ...@@ -16,8 +16,8 @@ $alerts = array(
'template' => 'security.twig', 'template' => 'security.twig',
), ),
array( array(
'recipients' => array('nicolas@cividesk.com'), 'recipients' => array('civicrm-dev@lists.civicrm.org'),
'subject' => '[CiviCRM] Weekly CiviCRM issues status', 'subject' => '[CiviCRM] Weekly CiviCRM issues recap',
'query' => " 'query' => "
SELECT issue, CONCAT('https://issues.civicrm.org/jira/browse/', issue) AS issue_url, summary, SELECT issue, CONCAT('https://issues.civicrm.org/jira/browse/', issue) AS issue_url, summary,
priority, status, assignee priority, status, assignee
...@@ -55,7 +55,8 @@ foreach ($alerts as $alert) { ...@@ -55,7 +55,8 @@ foreach ($alerts as $alert) {
// Compose and send the email // Compose and send the email
$message = Swift_Message::newInstance() $message = Swift_Message::newInstance()
->setSubject($alert['subject']) ->setSubject($alert['subject'])
->setFrom(array('info@civicrm.org' => 'CiviCRM')) // Need to use a From: email address authorized to all lists
->setFrom(array('nicolas@cividesk.com' => 'CiviCRM (no replies)'))
->setTo($alert['recipients']) ->setTo($alert['recipients'])
->setBody($body, 'text/html'); ->setBody($body, 'text/html');
$mailer->send($message); $mailer->send($message);
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
</tr><tr> </tr><tr>
<td align="right">{{ item.priority }}</td> <td align="right">{{ item.priority }}</td>
<td>{{ item.status }}</td> <td>{{ item.status }}</td>
<td>Assigned to: <b>{{ item.assignee }}</b></td> <td>Assigned to: {{ item.assignee }}</td>
</tr> </tr>
<tr></tr> <tr></tr>
{% endfor %} {% endfor %}
</table> </table>
<p>Cheers!<br/> <p>Thanks!</p>
<pre>--<a href="'https://stats.civicrm.org">stats.civicrm.org</a></pre></p> \ No newline at end of file
\ No newline at end of file
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
</tr><tr> </tr><tr>
<td align="right">{{ item.priority }}</td> <td align="right">{{ item.priority }}</td>
<td>{{ item.status }}</td> <td>{{ item.status }}</td>
<td>Assigned to: <b>{{ item.assignee }}</b></td> <td>Assigned to: {{ item.assignee }}</td>
</tr> </tr>
<tr></tr> <tr></tr>
{% endfor %} {% endfor %}
</table> </table>
<p>Cheers!<br/> <p>Thanks!</p>
<pre>--<a href="'https://stats.civicrm.org">stats.civicrm.org</a></pre></p> \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment