LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   server not sending email (php not working sendmail is) (https://www.linuxquestions.org/questions/linux-server-73/server-not-sending-email-php-not-working-sendmail-is-766071/)

steve51184 11-01-2009 05:13 PM

server not sending email (php not working sendmail is)
 
hi there i have a ubuntu 8.10 server with the usual apache2/php5/mysql setup and the server is mainly used to host an smf forum but it's recently stop sending emails out using php's mail function and ALL mail that uses this (99% of scripts use this) can't send mail yet the server CAN send email via sendmail if i do something like:

Quote:

echo hello |sendmail -v email@address.com
so what's the problem and is there a way to test to see if it is working?

thanks

sleddog 11-01-2009 05:26 PM

I believe that PHP's mail() function invokes sendmail, so you can check your server's mail log to see why a message fails.

You might also check the Apache access log and error log to see if the problem actually lies with the PHP script.

steve51184 11-01-2009 06:29 PM

problem is fixed


my server is getting it's emails marked as spam :(

paulsm4 11-01-2009 11:56 PM

Hi -

You might want to mark this post as "solved" (the problem had nothing to do with PHP per se, but with your e-mail relay).

Q: How is your other problem going:
http://www.linuxquestions.org/questi...3/#post3739311

Please, too, look at this link:
http://www.linuxquestions.org/questi...rwards-765855/


All times are GMT -5. The time now is 07:45 PM.