Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z wysyłaniem maila
lukaszk8807
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 3.07.2009

Ostrzeżenie: (0%)
-----


witam nie wiem gdzie podpiac moj temat.
Czy moglby mi ktos powiedziec co jest nie tak w moim skrypcie
Pisze ze wiadomosc wyslana lecz nie dochodzi mi na maila



KOD:

<?
Error_Reporting(E_ALL & ~E_NOTICE);

while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='mojmail@o2.pl') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}



reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

$message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
}
next($post_vars);
}

mail($_REQUEST['mojmail@o2.pl'], $subject, "
<html>
<head>
<title>Dziekujemy</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Wiadomosc pomyslnie wyslana");

?>
<script>
resizeTo(1024, 768);
</script>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 21:50