LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Trouble sending mails with php (https://www.linuxquestions.org/questions/linux-networking-3/trouble-sending-mails-with-php-115883/)

Wagner 11-14-2003 04:25 AM

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.

sashhoney 11-15-2003 01:44 AM

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

Wagner 11-17-2003 05:06 AM

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

ugob 12-15-2003 10:41 PM

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.