Trouble sending mails with php
Hello,
I'm using code that needs to send a mail, I tryed using mail, but It just won't send mail, but the return code returns TRUE. I installed RH9, and sendmail is installed too, in my php.ini, I have this line sendmail_path = /usr/sbin/sendmail -t -i I checked the path, and sendmail is in there I used this $ret=mail("wamaral@ipatimup.pt", "My Subject", "Line 1\nLine 2\nLine 3"); $ret should return error in case of failure but returns TRUE, but it's not sending mail anyway. |
i think, mail is sent but not delivered to destination successfully because of some configuration prob
check maillog messages for trouble-shooting (generally in /var/log/ directory) u will definitely get some thing there |
Well, you were right this is one line that saw in the logfile
I tried other addresses and it's still the same Nov 17 10:55:20 Obelix sendmail[21746]: hAHAtKhe021746: to=wamaral@ipatimup.pt, delay=00:00:00, mailer=esmtp, pri=30045, dsn=4.4.3, stat=queued Thanks |
Could you give us more of your logfile?
The message is accepted, queued, but then...? |
All times are GMT -5. The time now is 01:20 AM. |