email sended, but not received
- From: Marco <nospam@xxxxxxxxx>
- Date: Wed, 31 Jan 2007 19:07:19 +0100
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.
.
- Follow-Ups:
- Re: email sended, but not received
- From: J.O. Aho
- Re: email sended, but not received
- Prev by Date: Re: how to delete directories that are created by PHP?
- Next by Date: Re: email sended, but not received
- Previous by thread: POST checkbox group
- Next by thread: Re: email sended, but not received
- Index(es):
Relevant Pages
|