Mam na stronie formularz, ale:
1. w wysłanym mailu brak polskich liter (na @op.pl, na @gmail.com jest ok)
2. bez podania imienia pokazuje, że email został wysłany, ale nie dochodzi, czyli chyba nie został wysłany. Brak komunikatu "error podaj imię"
<?php
/*
Credits: Bit Repository
URL: http://www.bitrepository.com/
*/
include 'contact_config.php';
session_start();
error_reporting (E_ALL ^ E_NOTICE);
$post = (!empty($_POST)) ? true : false;
if($post)
{
include 'functions.php';
$name = stripslashes($_POST['name']);
$email = trim($_POST['email']);
$phone = stripslashes($_POST['phone']);
$subject = stripslashes($_POST['subject']);
$message = "Wiadomość od:
".$_POST['name']
."
E-mail: ".$_POST['email']
."
Tel: ".$_POST['phone']
."
Treść: ".$_POST['content'];
$error = '';
// Check name
if(!$name)
{
$error .= 'Wpisz imię i nazwisko<br />';
}
// Check email
if(!$email)
{
$error .= 'Wpisz email<br />';
}
if($email && !ValidateEmail($email))
{
$error .= 'Wpisz prawidłowy adres email<br />';
}
if(isset($_SESSION['captcha_keystring']) && strtolower($_SESSION['captcha_keystring']) != strtolower($_POST['capthca']))
{
$error .= "Zły kod<br />";
}
if(!$error)
{
$mail = mail(WEBMASTER_EMAIL, $subject, $message,
"From: ".$name." <".$email.">\r\n"
."Reply-To: ".$email."\r\n"
."X-Mailer: PHP/" . phpversion());
if($mail)
{
echo 'OK';
}
}
else
{
echo '<div class="notification_error">'.$error.'</div>';
}
}
?>