problem with php and mail()
| From: | Marco Strullato | Date: | Fri, 23 Sep 2005 06:58:59 +0000 |
| Subject: | problem with php and mail() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223059@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<marco.strullato@example.it%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@priscilla.studio.gea>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_193.70.193.96./<anonymous@priscilla.studio.gea%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@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
ps I've sent this message also in php-install ml but it is not arrived, so I
crosspost it here