source: spip-zone/_plugins_/reservation_evenement/branches/v1/notifications/reservation_client.php @ 78019

Last change on this file since 78019 was 78019, checked in by abelass@…, 8 years ago

import initial

File size: 697 bytes
Line 
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3
4
5function notifications_reservation_client_dist($quoi,$id_reservation, $options) {
6    include_spip('inc/config');
7    $config = lire_config('reservation_evenement');
8
9    $envoyer_mail = charger_fonction('envoyer_mail','inc');
10   
11    $options['id_reservation']=$id_reservation; 
12    $options['qui']='client';     
13    $subject=_T('reservation:votre_reservation_sur',array('nom'=>$GLOBALS['meta']['nom_site']));
14
15    $message=recuperer_fond('notifications/contenu_reservation_mail',$options);
16     
17    //
18    // Envoyer les emails
19    //
20    //
21    //
22
23    $o=array('html'=>$message);
24
25    $envoyer_mail($options['email'],$subject,$o);
26}
27
28?>
Note: See TracBrowser for help on using the repository browser.