Re: email sended, but not received



Marco wrote:
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!

Thats the receiving mail server that filters away the mail based on the host in the from-address. tiscali.it is also a quite popular domain for spemmers to send their spam from.


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.

Use a reply-to header where you use those spammer host addresses.

--

//Aho
.



Relevant Pages

  • 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: [PHP] base64-encoding in cookies?
    ... some encoding method such as URL style %XX encoding is recommended, ... The sender is in the driver's seat and the receiver must follow suite. ... But PHP does not permit this. ...
    (php.general)
  • Re: HELP, Newbe - Multiple IPs/Domains, outgoing only
    ... archives a php email sender that I found on the zend website some years ago. ... If PHP submits mail via direct invocation of sendmail, ... "matches" the IP address of the SMTP client host would of course break ...
    (comp.mail.sendmail)
  • Re: Joywarrior24RC Schaltung für FMS
    ... Marco Maier wrote: ... hinterster Kontakt = Leitungsschirmung nur am Sender ... Prev by Date: ... Next by Date: ...
    (de.rec.modelle.misc)
  • Re: HELP, Newbe - Multiple IPs/Domains, outgoing only
    ... If PHP submits mail via SMTP (which it doesn't in most setups AFAIK, ... If PHP submits mail via direct invocation of sendmail, ... create a seriously hacked submit.cf that uses the sender address ... "matches" the IP address of the SMTP client host would of course break ...
    (comp.mail.sendmail)