Source for file mail_actions.php
Documentation is available at mail_actions.php
* @author Simon Georget <simon@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
$email_html_body = "<p>". sprintf(_t('comment','mail_body1'), $a['name'], "<a href=\"". $a['item_link']. "\">". $a['item_title']. "</a> (" . $a['item_type']. ")") . " : </p>". END_LINE;
$email_html_body .= "<p><a href=" . $a['moderate_link'] . ">" . ucfirst(_t('comment', 'mail_body2')). "</a> ";
$email_html_body .= "(". _t('comment','mail_body_auth') . ")</p>". END_LINE;
$email_text_body = sprintf(_t('comment','mail_body1'), $a['name'], $a['item_title'] . ' ('. $a['item_type']. ') : '). END_LINE;
$email_text_body .= ucfirst(_t('comment', 'mail_body2')) . ' : '. $a['moderate_link']. END_LINE;
$email_text_body .= "(". _t('comment','mail_body_auth') . ")". END_LINE;
$email_subject = sprintf(_t('comment','mail_subject_moderate'), SITE_NAME);
$email_dest = $a['recipient'];
$unsubscribe_link = $a['unsubscribe_link']. '&email='. $a['recipient'];
$email_html_body = "<p>". sprintf(_t('comment','mail_body1'), $a['name'], "<a href=\"". $a['item_link']. "\">". $a['item_title']. "</a> (" . $a['item_type']. ")") . " : </p>". END_LINE;
if(!isset ($a['adminuser'])) {
$email_html_body .= "<p>" . ucfirst(_t('comment', 'mail_body3')) . "<a href=\"". $unsubscribe_link. "\">" . $unsubscribe_link . "</a></p>". END_LINE;
$email_text_body = sprintf(_t('comment','mail_body1'), $a['name'], $a['item_title'] . ' ('. $a['item_type']. ') : '). END_LINE;
if(!isset ($a['adminuser'])) {
$email_text_body .= ucfirst(_t('comment', 'mail_body3')) . $unsubscribe_link . END_LINE;
$email_subject = sprintf(_t('comment','mail_subject_newcomment'), SITE_NAME);
$email_dest = $a['recipient'];
|