Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd May 2005, 10:33
dirk dirk is offline
Junior Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default mail() function not available in PHP???

I've a big problem. I want to use PHP's mail() function to send emails, but my PHP tells me that this function isn't available... I thought the mail() function is built-in in PHP!?

Dirk
Reply With Quote
Sponsored Links
  #2  
Old 24th May 2005, 03:35
joe joe is offline
Junior Member
 
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

AFAIK, it is a built-in function. What distribution and version of PHP are you using?
__________________
Joe Topjian
email: joe@adminspotting.net
web: http://adminspotting.net
Reply With Quote
  #3  
Old 24th May 2005, 12:07
jojo jojo is offline
Junior Member
 
Join Date: Apr 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've had this phenomenon once before. It happens when you compile PHP from the sources and there's no sendmail binary on the system (doesn't matter if Sendmail/Postfix or any other MTA is installed, as long as there is a sendmail binary...). Took me a few days to find out...
So if you try to compile PHP from the sources make sure that you have an MTA installed on your system...

Jojo
Reply With Quote
  #4  
Old 25th May 2005, 18:46
dirk dirk is offline
Junior Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
What distribution and version of PHP are you using?
SuSE 9.2 and PHP 4.3.11 (which I compiled from the sources).
I'll try to find out if Jojo's hints apply to my system...

Dirk
Reply With Quote
  #5  
Old 26th May 2005, 15:18
dirk dirk is offline
Junior Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Ok, jojo is right. There was no sendmail binary on my system, so I've installed Postfix and re-compiled my PHP, and now the mail() function is working.

Dirk
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.