email sended, but not received



I write the following code for a test:

#######################################
<?php
$mail_from = "[omissis]";
$mail_to = $_GET["email"];

$mail_oggetto = "Test";
$mail_corpo = "This is a test";

if (mail($mail_to, $mail_oggetto, $mail_corpo, "From: $mail_from"))
echo "Email sended to $mail_to";
else
echo "Error: email not sended to $mail_to.";
?>

#######################################

This work fine if $mail_to ends with hotmail.com or gmail.com, but if it ends with tiscali.it, email.it or inwind.it the email results sended, but I don't receive it!

I think that some provider reject my email, because if this code was wrong, no message must be received.

As can I resolve it? If I must send a message with programs as Outlook or Thunderbird, I must use as sender an email of my provider, but in this case Apache (apache@xxxxxxxxxxxxxxxxxxxxx) result the senders.
.



Relevant Pages

  • Re: Eine kleine Frage zwischendurch...
    ... >> Der einzig vernünftige Grund einen Apache zu verwenden besteht meiner ... > konfigurieren als IIS, Stichwort .htaccess. ... Lösungen per PHP / ASP usw. ... Und wenn man nicht grade einen "0815" Provider ...
    (microsoft.public.de.frontpage)
  • Re: [PHP] base64-encoding in cookies?
    ... The sender is in the driver's seat and the receiver must follow suite. ... PHP application is usually what set the cookie in the first place. ... You have control over the value you insert into the cookie. ...
    (php.general)
  • Re: Post with redirect?
    ... I am using an online merchant provider and I must post certain ... How can I force a POST but actually redirect the user as well like ... and it can't be done with PHP. ... that's just another helpful 'golden nugget' from jerry stuckle. ...
    (comp.lang.php)
  • Re: Haftbarkeit der Provider bei unsicherer PHP Konfiguration
    ... Eine OpenSource Anwendung auf PHP Basis ... den Schaden erlitten hat, ... muss der Provider ...
    (de.soc.recht.datennetze)
  • Re: JMS Overview
    ... JMS provider is a server/provider that manages the queue/topic ... The sender sends the messages ... that the sender put the message on the queue when the receiver was not ... Remember that the message consumer can set up MessageListeners ...
    (comp.lang.java.programmer)