Witam.poniżej przedstawiam skrypt do wysyłania mailingu.Teoretetycznie działa,ale tylko teoretycznie,nie wyskakują błędy,piszę mi na końcu wysłało konkretne maile,niestety żadnego maila nie otrzymałem.Moglibyście zerknąć.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl">
<head>
<title id="page_title">Mailing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body >
<form method="post" target="_self">
<p>text:</p>
<textarea name="tresc" rows="8" cols="38" ></textarea>
<p>tytul</p><input class="text" name="tytul" maxlength="64" value="" />
<p>nadawca</p><input class="text" name="nadawca" maxlength="64" value="" />
<input type="hidden" name="action" value="send"/>
<input type="submit" value="Wyslij">
<?
if(isset($_POST["tytul"])) $tytul = $_POST["tytul"];
if(isset($_POST["tresc"])) $tresc = $_POST["tresc"]; if(isset($_POST["nadawca"])) $nadawca = $_POST["nadawca"]; if(isset($_POST["action"])) $action = $_POST["action"];
echo '<h1 style="color:red">'.$action.'</h1>'; echo '<h1 style="color:red">'.$nadawca.'</h1>'; echo '<h1 style="color:red">'.$tresc.'</h1>'; echo '<h1 style="color:red">'.$tytul.'</h1>'; switch($action)
{
case "send":
$username="$username";
$password="$password";
$database="$database";
$host="localhost";
{
{
$mail = $dane["mail"];
mail($mail,$tytul,$tresc,"From: " . $nadawca); echo "wyslano maila do: $mail<br />"; }
}
default:
break;
}
?>
</bpdy>
</html>
Pytanie ejst dalekj aktualne