problem with php and mail()

From: Date: Thu, 22 Sep 2005 15:10:36 +0000
Subject: problem with php and mail()
Groups: php.install 
Request: Send a blank email to php-install+get-16668@lists.php.net to get a copy of this message
hi all, I have a problem sending mails with mail(): when this code runs: mail("marco.strullato@example.it","ciao","ciao", "From: marco <marco@<marco@e> anotherexample.com <http://anotherexample.com>>"); any email arrives: qmail tells @400000004332b7d900edffbc delivery 548: deferral: 193.70.193.96_does_not_like_recipient./Remote_host_said:_450_< anonymous@priscilla.studio.gea>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_193.70.193.96./ It is a misconfiguration of php.ini or qmail and I don't know what to look for: in php.ini I wrote [mail function] SMTP = localhost sendmail_from = info@anotherexample.com sendmail_path = /usr/sbin/sendmail (I've tryed to set a cmd line option for sendmail as sendmail -f info@anotherexample.com but it does not work...) and qmail is configured to accept only mails from localdomains. I think I have to set default address somewhere. tnks!! marco

« previous php.install (#16668) next »