mail() not sending from PHP script (Linux and Exim)
I run a Fedora Core 6 server as a host for my website. I use Exim instead of the default Sendmail (because it is a thousand times easier to setup).
As of yet, I have not been able to get the PHP mail() function to work in my website. The pertinent portion of my php.ini file reads: Quote:
I use a php script such as this: Code:
<?php All output from the server is accepted in Iptables. What am I missing? I'd really appreciate any suggestions. |
I'm not sure if this will help you...
But this is what I suggest to everyone using mail functionality within PHP: http://www.linuxquestions.org/questi...97#post2524497 |
I read on some forums that exim is not that easy to use with PHP. They suggested me not to use exim with -i option but as I can see you are not. That makes exim to sit and wait for more input. What you need it this:
Quote:
I don't know how it should be with Exim as I am using the sendmail alternative: postfix. Is is reliable and works good for me. No problems at all. I know 2 more alternatives how to use Exim. You might want to use IMAP to log in and send messages. It is fairly easy and works for some people. The last one is a bit more complicated. A lot more complicated. You can write your own script that will use exim to send the message. PHP Code:
|
I think Exim is a fairly straightforward setup. It works from the shell without any configuration. I'll check into that all the same.
How do I remove sendmail as the MTA? Is that something I need to manually do? |
On Ubuntu it is automatic if you want to install another MTA but if it is not on Fedora try to use yum remove or something similar. To be honest I have never used Fedora so I am not sure.
|
I'm almost sure that removeal of the MTA upon uninstall is automatic. I used yum remove to remove sendmail.
Could my problem have anything to do with apache not having permission to access the sendmail.exim command? I have heard that the latest version (which I am using) is set up differently for security purposes. Does that sound reasonable? How would I check such a thing? Are there other things I should be checking? |
I am sorry but that's all I know about it. If you test the stuff on local computer I wouldn't be worried about the MTA because on the remote server it should work 100% perfect. Sendmail or postfix will solve you program instantly and you do not have to modify your script to use it with exim on the remote server. Or at least I hope it will solve it immediately.
Let us know if you can solve the problem pls. |
All times are GMT -5. The time now is 01:56 AM. |