Эротические торты 18+
СОДЕРЖАНИЕ
 
ГОСТЕВАЯ
 
ГЕНЕРАТОР
 
ССЫЛКИ
 

Добавление комментариев отключено


10.10.2010   Коляныч

Люди добрые помогите! есть у меня скрипт
<?
/********************************************/
/*Welcome to PHP Mailer source-code!*/
/*The PHP Mailer and its functions, contexture are copyrighted by s1ayer [www.spg.arbse.net]*/
/*Current file: index.php*/
/*Optimized for PHP 4.3.6, Apache 1.3.27*/
/********************************************/
if (@function_exists("mail"))
{
include "config.php";
?>

<?
if (isset($_GET['send']) and isset($_POST['sform']))
{
$to = trim($_POST['to']);
if ($to != "")
{
$from = $_POST['from'];
$theme = $_POST['theme'];
$content = $_POST['content'];
$to = ereg_replace (",([^ ]{1})", ", \\1", $to);
$theme = $theme==""?"No subject":$theme;
if (@$_POST['cyr_encode'] == "yes")
$theme = "=?koi8-r?B?".base64_encode(convert_cyr_string($theme, "w","k"))."?=";

if (@$_POST['html'] == "yes")
$ctype = "html";
else
$ctype = "plane";

$header = "Content-Type: text/$ctype; charset=\"$charset\" \r\n";
$header .= "From: $from \r\n";
$header .= "X-Mailer: PHP-Mailer by s1ayer[www.spg.arbse.net] \r\n";

if (@$_POST['hide_addr'] == "no")
{
$error = 0;
$to_array = explode (", ", $to);
for ($i=0; $i<count($to_array); $i++)
{
if ($to_array == "")
continue;

if (!@mail($to_array[$i], $theme, $content, $header))
$error++;

}
if ($error == 0)
print "Отправка писем завершена<br><br>";
else
print "Невозможно отправить письмо!<br><br>";

}
else
{
if (@mail($to, $theme, $content, $header))
print "Письмо отправлено<br><br>";
else
print "Невозможно отправить письмо!<br><br>";
}

}
else
print "Вы не заполнили поле 'Кому' !<br><br>";

}
?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function hide_button (){
document.getElementById('button').style.display = "none";
document.getElementById('processing').style.display = "block";
}
//-->
</SCRIPT>
<form action="?send" method="post">
<table>
<tr><td>Получатели:</td><td><textarea name='to' rows='20' cols='19'><?=$default_to?></textarea></td></tr>
<tr><td>От кого:</td><td><input type="text" name="from" value="<?=$default_from?>" size=40></td></tr>
<tr><td>Тема:</td><td><input type="text" name="theme" size=40></td></tr>
<tr><td valign="top">Содержание:</td><td><textarea name="content" rows=9 cols=50><?=$default_sign?></textarea></td></tr>
<tr><td colspan=2>
Опции:<br>
<ul>
<li>отправить в HTML ? <input type="checkbox" name="html" value="yes"></li>
<li>кодировать заголовок письма в koi8 ? <input type="checkbox" name="cyr_encode" value="yes" checked></li>
</ul>
</td>
</tr>
<tr><td colspan=2 align="right"><input type="hidden" name="sform" value="yes"><input type="submit" value="Отправить" id=button style="display: block" onClick="hide_button()"><button id="processing" style="display: none" disabled>Пожалуйста, ждите...</button></td></tr>
</table>
</form>

<?
}
else
print "Извините, сервер не поддерживает функции <tt>mail ()</tt>";
?>
как сделать чтобы почтовые адреса брались из текстового файла.
Помогите я ничё не понял.




Вопрос был задан на этой странице. Но если Вам это не интересно, могу предложить Вам почитать про платный хостинг.
(c) Janda.ru