LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 09-15-2005, 02:06 PM   #1
lost@sea
LQ Newbie
 
Registered: Sep 2005
Location: St. Louis, MO
Posts: 3

Rep: Reputation: 0
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.
 
Old 09-15-2005, 02:17 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
???
 
Old 09-15-2005, 02:24 PM   #3
lost@sea
LQ Newbie
 
Registered: Sep 2005
Location: St. Louis, MO
Posts: 3

Original Poster
Rep: Reputation: 0
Yes - the things you mention are all true.
 
Old 09-15-2005, 02:28 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
In phpinfo(), what is the "configure" line shown as?
 
Old 09-15-2005, 02:32 PM   #5
lost@sea
LQ Newbie
 
Registered: Sep 2005
Location: St. Louis, MO
Posts: 3

Original Poster
Rep: Reputation: 0
./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'
 
Old 09-21-2005, 09:16 AM   #6
bullshit
Member
 
Registered: Oct 2003
Posts: 44

Rep: Reputation: 15
Hi :

I'm kind of having a similar problem but in debian+php4.4+apache2, and still no solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
php and sendmail akamaru607 Linux - Newbie 1 08-25-2005 12:51 PM
php sendmail... HELP! Doug86 Linux - Newbie 3 07-29-2005 09:09 AM
sendmail and php puremourning Linux - Software 1 05-12-2005 05:06 PM
PHP/Sendmail Help dailyuser Programming 0 08-31-2004 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration