Changeset 92516 in spip-zone


Ignore:
Timestamp:
Oct 29, 2015, 11:50:25 AM (4 years ago)
Author:
cedric@…
Message:

Ajouter un suffixe anneemois a l'identifiant de campagne, pour ne pas risquer une collision d'envoi chez les services d'envoi (http://contrib.spip.net/mailshot#forum483077)

Location:
_plugins_/mailshot/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/mailshot/trunk/inc/mailshot.php

    r92515 r92516  
    141141                $dests = sql_allfetsel("*","spip_mailshots_destinataires","id_mailshot=".intval($shoot['id_mailshot'])." AND statut=".sql_quote('todo'),'','try',"$offset,$nb_max");
    142142                if (count($dests)){
    143                         $options = array('tracking_id'=>"mailshot".intval($shoot['id_mailshot']));
     143                        $options = array('tracking_id'=>"mailshot".intval($shoot['id_mailshot'])."-".date('Ym',strtotime($shoot['date_start'])));
    144144                        $subscriber = charger_fonction("subscriber","newsletter");
    145145                        $send = charger_fonction("send","newsletter");
  • _plugins_/mailshot/trunk/paquet.xml

    r92515 r92516  
    22        prefix="mailshot"
    33        categorie="communication"
    4         version="1.10.0"
     4        version="1.10.1"
    55        etat="stable"
    66        compatibilite="[3.0.5;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.