-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend.php
More file actions
50 lines (32 loc) · 1.19 KB
/
send.php
File metadata and controls
50 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?
session_start();
$odr = "\n\n\n If you want delete this mail to sending go \n";
$homepage = "https://cil.org.ua/email-php/ras.php";
$subject = "Переклади, робота в Китаї - cil.org.ua"; // тема
$fromemail = "ljubik@cil.org.ua"; // емейл від кого
$file = "maillist.txt"; // документ за адресами
$password = "secretpassword"; // пароль
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <ljubik@cil.org.ua>' . "\r\n";
// $headers .= 'Cc: myboss@example.com' . "\r\n";
$message = '
';
//error_reporting(0);
//$subject = $HTTP_POST_VARS["subject"];
//$body = $HTTP_POST_VARS[$mailhtml];
//$subject = stripslashes($subject);
//$body = stripslashes($body);
$file = "maillist.txt";
$maillist = file($file);
print "In our mail baze ". sizeof($maillist) ." mails<br>";
for ($i = 0; $i < sizeof ($maillist); $i++)
{
//echo($maillist[$i]."<br>");
mail($maillist[$i], $subject,
$message, $headers ."$odr $homepage?delmail=$maillist[$i]");
}
echo "Done !";
?>