[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / ecrire / inc / mail.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2017 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 /**
14 * Module de compatibilite ascendante : desormais inc/envoyer_mail
15 *
16 * @deprecated Utiliser inc/envoyer_mail
17 * @package SPIP\Core\Mail
18 */
19
20 if (!defined('_ECRIRE_INC_VERSION')) {
21 return;
22 }
23
24 if (!function_exists('envoyer_mail')) {
25 define('_FUNCTION_ENVOYER_MAIL', charger_fonction('envoyer_mail', 'inc'));
26 /**
27 * Envoie un mail.
28 *
29 * @uses inc_envoyer_mail_dist()
30 * @deprecated Utiliser inc_envoyer_mail_dist() via charger_fonction()
31 **/
32 function envoyer_mail() {
33 $args = func_get_args();
34 if (_FUNCTION_ENVOYER_MAIL) {
35 return call_user_func_array(_FUNCTION_ENVOYER_MAIL, $args);
36 }
37 }
38 }