Citazione:
<html>
<body>
<?php
if(isset($_POST['submit'])) {
if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$",$_POST['email'])) {
mail($_POST['email'],"Test Mail","Test mail from server");
echo 'Mail send to';
} else {
echo 'Invalid email format';
}
echo ' ' . $_POST['email'];
} else {
?>
<form method="POST" action="">
Enter your email: <br> <br>
<input name="email" type="text" value="you@isp.com"> <br> <br>
<input type="submit" name="submit" value="Send Test Email">
</form>
<?php
}
?>
<br>
</body>
</html>
facendo questo test, successivamente mi compare la scritta "Mail send to -indirizzo-" ma non arriva nulla! Aiuto!!! :(