Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-15-2005, 02:06 PM
|
#1
|
LQ Newbie
Registered: Sep 2005
Location: St. Louis, MO
Posts: 3
Rep:
|
PHP and sendmail
I have had php (4.3.4) as well as mysql and apache2 installed and running on my Suse 9.1 professional system for quite sometime. I recently decided to do some things with sending mail from within my php scripts which I have done on various other machines. Unortunatley, I keep getting an error saying call to undefined function: mail() . In my php info it has the sendmail_path listed correctly as /usr/sbin/sendmail. I have tried refreshing from YAST the php install but continue getting the error. The install from yast does not produce a configure script so I can't run that.
Any suggestions on how to get php to understand sendmail would be greatly appreciated.
|
|
|
09-15-2005, 02:17 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
Are the following conditions from the php manual true:
Quote:
Requirements
For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary.
|
???
|
|
|
09-15-2005, 02:24 PM
|
#3
|
LQ Newbie
Registered: Sep 2005
Location: St. Louis, MO
Posts: 3
Original Poster
Rep:
|
Yes - the things you mention are all true.
|
|
|
09-15-2005, 02:28 PM
|
#4
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
In phpinfo(), what is the "configure" line shown as?
|
|
|
09-15-2005, 02:32 PM
|
#5
|
LQ Newbie
Registered: Sep 2005
Location: St. Louis, MO
Posts: 3
Original Poster
Rep:
|
./configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'
|
|
|
09-21-2005, 09:16 AM
|
#6
|
Member
Registered: Oct 2003
Posts: 44
Rep:
|
Hi :
I'm kind of having a similar problem but in debian+php4.4+apache2, and still no solution.
|
|
|
All times are GMT -5. The time now is 05:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|