jecka3000
30.12.2009, 15:24
Нашел следующий скрипт:
<form method="post">
<meta charset="utf-8">
<table cellspasing = '8'>
<tr>
<td>Content-Type:</td>
<td><input type="text" name = "type" value = "text/html" size = "100"/></td>
</tr>
<tr>
<td>From:</td>
<td><input type="text" name = "from" size = "100"/></td>
</tr>
<tr>
<td>To:</td>
<td><input type="text" name = "to" size = "100"/></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type="text" name = "subject" size = "100"/></td>
</tr>
<tr>
<td>HTML Content:</td>
<td><textarea cols="75" rows="25" name = "content" ></textarea></td>
</tr>
<tr>
<td><input type="submit" value="Send"></td>
</tr>
<?php
foreach($_POST as $key => $value)
{
if (ini_get("magic_quotes_gpc") == 1)
{
$_POST[$key] = stripslashes($value);
}
}
$from = $_POST['from'];
$subject = $_POST['subject'];
$to = $_POST['to'];
$content = $_POST['content'];
$type = $_POST['type'];
if ($from != '' && $to !='' && $content != '' && $subject != '' && $type != '')
{
$headers = "From: $from\r\nMIME-Version: 1.0\r\nContent-Type: $type; charset=\"utf-8\"\r\nContent-Transfer-Encoding: 7bit\r\nX-MimeOLE: Prodused By Microsoft MimeOLE v6.00.2800.1441\r\n";
mail($to,$subject,$content,$headers);
echo "<h2>Ваша почта отправлена</h2>";
}
?>
попробовал отослать на рамблер и мэил, результаты нет, может быть есть аналоги?
<form method="post">
<meta charset="utf-8">
<table cellspasing = '8'>
<tr>
<td>Content-Type:</td>
<td><input type="text" name = "type" value = "text/html" size = "100"/></td>
</tr>
<tr>
<td>From:</td>
<td><input type="text" name = "from" size = "100"/></td>
</tr>
<tr>
<td>To:</td>
<td><input type="text" name = "to" size = "100"/></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type="text" name = "subject" size = "100"/></td>
</tr>
<tr>
<td>HTML Content:</td>
<td><textarea cols="75" rows="25" name = "content" ></textarea></td>
</tr>
<tr>
<td><input type="submit" value="Send"></td>
</tr>
<?php
foreach($_POST as $key => $value)
{
if (ini_get("magic_quotes_gpc") == 1)
{
$_POST[$key] = stripslashes($value);
}
}
$from = $_POST['from'];
$subject = $_POST['subject'];
$to = $_POST['to'];
$content = $_POST['content'];
$type = $_POST['type'];
if ($from != '' && $to !='' && $content != '' && $subject != '' && $type != '')
{
$headers = "From: $from\r\nMIME-Version: 1.0\r\nContent-Type: $type; charset=\"utf-8\"\r\nContent-Transfer-Encoding: 7bit\r\nX-MimeOLE: Prodused By Microsoft MimeOLE v6.00.2800.1441\r\n";
mail($to,$subject,$content,$headers);
echo "<h2>Ваша почта отправлена</h2>";
}
?>
попробовал отослать на рамблер и мэил, результаты нет, может быть есть аналоги?