SMTP no error, but no email sent.
Hi everybody,
I was having a bad time looking for some solution of my server problem. I'am using phpmailer to send mails using smtp server, it gives me no error but no email sent. When I try my script on other server, and it works. I'm just wondering if there are some webmail configuration that I messed up. Any idea on things that need to consider to make everything works? Please help. Thanks |
What happens when you telnet to the smtp server where the script is not working?
telnet <server> 25 |
Quote:
|
that all depends on your distro.
debian, ubuntu and etc... would probably be: aptget install telnet redhat, suse and other rpm distros would greatly depend on what you have available and prefered packagemanager. slackware. it should just be there. |
Quote:
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
But on the other way CentOS 6.x doesn't have Exim configured "out of box" when installed, so someone had to do it. |
Quote:
|
Quote:
|
Find yourself a manual online to test smtp from command line. send yourself some mail. if that works we can rule out the smtp server and move on. I am guessing that you will have a setting in the php.ini on the failing web server that will fix it if you find that the smtp server responds correctly.
|
|
Are Apache and php configured to send mail from scripts on the server in question?
It might be worth while to compare the php configuration on the server where the script works with that on the server where the script doesn't work and to look for the php error log, wherever it might be located. If php is not sending the mail, the absence of smtp errors would be explained. |
All times are GMT -5. The time now is 12:56 AM. |