Allora questo é il mio script php:
Codice PHP:
<?
$song_title=$_POST['song_title'];
$artist_name=$_POST['artist_name'];
$message=$_POST['message'];
$user_name=$_POST['user_name'];
$user_email=$_POST['user_email'];
$user_ip=$_SERVER['REMOTE_ADDR'];
$date=date("g:i A - F j - Y", time());
$mailto = "moksud_xp@hotmail.it";
$mailfrom = "email@mittente.it";
$object = "New request from Radio Doorbin";
$msg = "
<html>
<head>
</head>
<body>
[b] New request from Radio Doorbin![/b]
[b]Song Title:[/b] $song_title
[b]Artist Name:[/b] $artist_name [b]
Message:[/b] $message
[b]User Name:[/b] $user_name
[b]User eMail:[/b] $user_email
[b]User IP Address:[/b] $user_ip
[b]Time:[/b] $date
</body>
</html>
";
// Intestazioni HTML
$mail_in_html = "MIME-Version: 1.0\r\n";
$mail_in_html .= "Content-type: text/html; charset=iso-8859-1\r\n";
$mail_in_html .= "From: <$mailfrom>";
if (mail($mailto, $object, $msg, $mail_in_html))
{
print "Your request have been sent!
After 60 seconds you can do a new Request!";
}
else
{
print "Please fill up correctly!";
}
?>
<html><head>
<meta http-equiv="refresh" content="60;url=song_req.html" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
background-color: #990303;
}
-->
</style></head><body></body></html>
Se cambio il nome della variabile mailfrom da email@mittente.it in qualcosaltro, la mail viene indicata come spam, come mai?