problem with php and mail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,
I have a problem sending mails with mail():
when this code runs:
 mail("marco.strullato@xxxxxxxxxx","ciao","ciao<marco.strullato@xxxxxxxxxx%22,%22ciao%22,%22ciao>",
"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@xxxxxxxxxxxxxxxxxxxx>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_193.70.193.96./<anonymous@xxxxxxxxxxxxxxxxxxxx%3E:_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@xxxxxxxxxxxxxxxxxx
sendmail_path = /usr/sbin/sendmail

(I've tryed to set a cmd line option for sendmail as sendmail -f
info@xxxxxxxxxxxxxxxxxx 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


ps I've sent this message also in php-install ml but it is not arrived, so I
crosspost it here

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux