Witam,.
Mam prosbe dla osob znajacych sie na php
Mam na stronie w contactach formularz mailowy ktory po wypelnieniu i acpetacji wyglada Ok napis z podziekowaniami itp jest jednak mail nie dochodzi do skrzynki.....
Prosze o sprawdzenie kodu mozliwe ze gdzies popelnilem blad.. bede wdzieczny...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela | aka: Yokhannan">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<center>
<?
/* Let's set a few Variables to handle all the dirty work! */
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$URL = $_POST['URL'];
$pages = $_POST['pages'];
$budget = $_POST['budget'];
$Comments = $_POST['Comments'];
$site_name = "http://www.nazwastrony.com";
$site_email = "quote@nazwastrony.com"; # (ie: your_address@yourdommain.com )
/* This will handle the variables passed from the contact.php3 file */
PRINT "<CENTER>";
PRINT "Hello, $name.";
PRINT "<BR><BR>";
PRINT "Thank you for your interest in our site!<BR><BR>";
PRINT "Your quote has been sent to: $email as a confirmation email.";
PRINT "</CENTER>";
?>
<?
$tresc = "$name\nThank you $name for submitting your question/comments!\nWe will handle your submission in the order of arrival.\nIf needed, we will email you back. If you do not receive\na reply within 48 hours, please email $site_email!";
$m1 = @mail($email, "Thank You From $site_name!", $tresc); // mail: do_kogo, temat, tresc
$tresc2 = "Submitted By: $name\n
Email: $email\n
Phone: $phone\n
URL: $URL\n
Pages: $pages\n
Project: $budget\n
Desciption: $Comments";
$m2 = @mail($site_email, "$site_name Contact Name", $tresc2);
if( !$m1 || !$m2 ) echo 'Nie mozna wyslac maila!';
?>
</center>
</BODY>
</HTML>