chronister Posted May 13, 2007 Share Posted May 13, 2007 I am not sure if this should go in another board or not. If so, sorry. I am having trouble with the sendmail path in my php.ini file. I am running Ubuntu 6.01. My sendmail path in php.ini is: sendmail_path = /usr/sbin/sendmail -i -t I can send mail through evolution mail which is the email client in Ubuntu, and it's configured to simply use sendmail. When I try to use my email script it does not work. The same script uploaded to my live web server hosted through 1and1 works just fine, but not on my local testing server which leads me to believe there is a problem with php accessing my sendmail program. Any ideas as to why this ain't working? Thanks in advance Nate Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/ Share on other sites More sharing options...
oceans Posted May 13, 2007 Share Posted May 13, 2007 Friend, Did you try putting setting in your emailing settings on the very top of your respective page, this might over come your ini problem, earlier I was adviced so. Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-251755 Share on other sites More sharing options...
chronister Posted May 13, 2007 Author Share Posted May 13, 2007 No, I don't want to do this because I want the sendmail to work as directed in php.ini I run several sites on my testing server.. some are tests others are local intranet sites. For the tests, I want to be able to transplant the code to the live server when it is time without having to meddle with ini_set(). I want to do it the CORRECT way and let the php config file manage it Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-251761 Share on other sites More sharing options...
trq Posted May 13, 2007 Share Posted May 13, 2007 Does the /usr/sbin/sendmail file actually exist on your machine? Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-251817 Share on other sites More sharing options...
chronister Posted May 13, 2007 Author Share Posted May 13, 2007 yeah, I checked the path and it is there. I have tried it as sendmail_path = /usr/sbin/sendmail -i -t & sendmail_path = "/usr/sbin/sendmail -i -t" & sendmail_path = /usr/sbin/sendmail // with and without the quotes would single quotes make any difference over double quotes? ' ' vs " "? I am pretty new to linux, but the Services control panel shows sendmail is going. The status for each runlevel is 0 stop 1 stop 2 start 3 start 4 start 5 start 6 stop I am not even sure if these make a difference in this case. Thank you Thorpe for answering on this one. I was hoping one of you Super Guru's would take this one up. Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-251822 Share on other sites More sharing options...
trq Posted May 13, 2007 Share Posted May 13, 2007 Id'e suggest you look through your logs. One problem may be the user Apache is being run under does not have permissions to use sendmail. Sorry, I'm a Gentoo user and haven't used Ubuntu for anything more than a desktop setup on my laptop. Did you install and configure sendmail yourself or is it the out of box setup? I just can't imagine Ubuntu would ship with any sort of pre-configured mailserver. Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-251826 Share on other sites More sharing options...
chronister Posted May 13, 2007 Author Share Posted May 13, 2007 Thanks Thorpe, I installed sendmail, apache, mysql & phpmyadmin myself. There was no configuration for sendmail. I simply installed it through synaptic package manager and set up evolution mail to use it and it works. As I said, I am new to linux, how do I find out what user apache is being run as? I had it working once before, and I have no idea what changed to make it stop working. Anyone else have any ideas?? Thanks, Nate Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-252160 Share on other sites More sharing options...
chronister Posted May 13, 2007 Author Share Posted May 13, 2007 Well, it is mostly solved. I simply un-installed and then reinstalled the sendmail package. Once I did that the 10-12 items I tried sending last night in testing came through. So it is now sending mail properly, but yahoo will not receive it. I will mark this thread solved and start a new one since it is more appropriate in a new topic. Quote Link to comment https://forums.phpfreaks.com/topic/51138-solved-phpini-question/#findComment-252220 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.