You are here: Re: email sended, but not received « All PHP « IT news, forums, messages
Re: email sended, but not received

Posted by J.O. Aho on 01/31/07 19:34

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@localhost.localdomain) result the senders.

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

--

//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация