I am trying to send email via my web server using PHP but for some reason the email never arrives. According to PHP the email was sucessfully sent but I never receive the email. I know its not a spam problem as the web server used to be able to successfully send email until I reinstalled it last week. It has been installed with exactly the same OS and configuration except now it doesn't work.It is using the default PHP settings for sending email and I have enabled SMTP in the firewall but this doesn't seem to be working.Are there any logs for the PHP email sending that may be able to help me trouble shoot why it isn't working?
Email sent from web server using PHP does not arrive
opensuse;email;php
PHP is probably trying to talk to a local SMTP server, that is, one running on the same machine as the web server. So, have you set one up? There are many to choose from. The most popular are Sendmail, Exim, Postfix, and Qmail.Try sending email using the primitive mailx client. If it can't send mail outside the machine, it's probably for the same reason PHP can't, so the problem would therefore lie outside PHP.Try sending email by hand from the command line by telnetting to localhost on port 25 and speaking the SMTP by hand. There are many guides for this online. Here's one. Where you go from there depends on what happened:If you get no answer on port 25, there is no SMTP server running.If it answers, maybe it will give an error message that clues you in to the problem.If it appears to accept the email, you have to go about debugging your local SMTP server.