Mam taki kod do wysyłania maila który działa
ale potrzebuje żeby sprawdzał majla i czy wszystkie pola zostały wykorzystane
Oto skrypt
kontakt.php3
<TABLE border=0 cellPadding=0 cellSpacing=0 width=564>
<form action="email.php3" method="post"> <table align="center" width="100%"> <td align=right><font face="verdana,arial" size="1"><B>Imie:
</td> <td><font face="verdana,arial" size="1"><input name="name" size=28 value=""></td> <td align=right><font face="verdana,arial" size="1"><B>E-Mail:
</td> <td><font face="verdana,arial" size="1"><input name="email" size=28 value=""></td> <td align=right><font face="verdana,arial" size="1"><B>Temat:
</td> <td><font face="verdana,arial" size="1"><input name="site_name" size=28 value=""></td> <td><font face="verdana,arial" size="1"><input type="submit" value="Wyślij"></td>
email.php3
<?
$site_email = "email@coś.pl";
PRINT "Dziekujemy za zainteresowanie się naszą stroną!<BR><BR>"; PRINT "Twój e-mail został wysłany, odpowiedz przyjdzie niebawem.";
?>
<?
mail("$email", "Thank You From $site_name!", "$namen Thank you $name for submitting your question/comments!
We will handle your submission in the order of arrival.
If needed, we will email you back. If you do not receive
a reply within 48 hours, please email $site_email!");
"$site_name",
"Napisał: $name
Email: $email
Treść:
$Comments
");
?>
Pomożecie
Ten post edytował Piotrwusek 22.06.2007, 11:11:11