Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/51138-solved-phpini-question/
Share on other sites

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

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.

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.

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

 

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.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.