root/alternc-stats/branches/INIT/admin/stat_mail.php

Revision 1340, 0.5 kB (checked in by anonymous, 4 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2
3 $right_chk=5;
4 require_once("common.php");
5
6 dolog("stat_mail");
7
8 if ($subject && $corps && !$sql && is_array($rcpt)) {
9   // envoi à une liste de recipients ...
10   echo "<p>Envois</p><p>";
11   for ($i=0;$i<count($rcpt);$i++) {
12     //    echo "Mail : $rcpt[$i]@afev.org / $subject <br />";
13     mail($rcpt[$i]."@afev.org",$subject,$corps,"From: $from\nReply-to: $from");
14     echo ".";
15   }
16   mail($from,$subject,$corps,"From: $from\nReply-to: $from");
17   echo "</p>";
18 }
19
20 include("head.php");
21 ?>
22
23 <h1>Le mail a été envoyé.</h1>
24
25 <?php
26 include("foot.php");
27 ?>
Note: See TracBrowser for help on using the browser.