Witam
Otóż na mojej WWW zrobiłem takie coś żeby można wysyłać zlecenia dzięki formularzowi na mój adres e-mail
Ale nie takie że się klient pocztowy otwiera tylko za pomoca skryptu
Skrypt wygląda tak:
<?php
/ ****************************************************************************** \
* Simple Page Protect Version 1.0 *
* Copyright 2000 Frederic TYNDIUK (FTLS) All Rights Reserved. *
* E-Mail: tyndiuk@ftls.org Script License: GPL *
* Created 02/28/2000 Last Modified 02/28/2000 *
* Scripts Archive at: http://www.ftls.org/php/ *
******************************************************************************* /
/ ******************************************************************************* /
// Necessary Variables:
$TO = "nowi90@gmail.com";
// En: E-Mail of mail recipient.
// Fr: E-Mail pour l'envoie.
$DEFAULT_EXIT_PAGE = "http://mateoo.ovh.org";
// En: exit page.
// Fr: page de sortie.
// End Necessary Variables section
/ ****************************************************************************** /
$headers = "From: Newslatter $SERVER_NAME <$mail>\n";
$headers .= "X-Mailler: PHP 3 Form2Mail made by FTLS, http://mateoo.ovh.org\n";
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
$message .= "\nSent by ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n";
mail($TO, $subject, $message, $headers);
// En : Send mail
// Fr : Envoi du mail
if(! $exit_page)
$exit_page = $DEFAULT_EXIT_PAGE;
Header("Location: ".$exit_page);
// Exit -> $exit_page
?>
Natomiast formularz który ma korzystać z tego skryptu tak:
action="form2mail.php">
value="nowi90@gmail.com">
| Pseudo: | |
| Twój E-mail: | |
| Temat: | |
| Tre¶ć: | |
| | |
[/code]
I teraz nie wiem dlaczego nie dostaje e-maial wysłanych z tego forumularza
jeśli byście chcieli wiedzieć gdzie to jest to TU
I teraz nie mam pojęcia czemu mi to nie działa?
czy ktoś mógł by mi pomóc rozwiązać ten problem?