kieranbarnes Independent PHP, WordPress & CubeCart Programmer

“Mail option not available!”

Posted on June 25, 2007

I spotted a strange PHP "feature" in the error_log() feature.

PHP checks for sendmail functionality once during ./configure for the mail() and error_log() functions.

Now, you can quite happily pass the sendmail path with the 'additional_parameters' flag to the mail() function, if you added mail support later but error_log() won't take that flag, so it fails with "Mail option not available!"

Rule: Install postfix/qmail/whatever BEFORE installing PHP if you want to use mail as an error_log() option.


Related posts

  1. “sh: -t: command not found” with PHP cron/command line
    Are you getting "sh: -t: command not found" when running a PHP from cron or...
  2. Couldn’t send mail with MS SQL Server 2005
    So I've been struggling trying to send SQL Agent job notifications to operators. Turns out...
  3. Yellow text?
    I stumbled over a strange bug on two systems the other day where the imagettftext()...
  4. ADOdb’s GetMenu() function moreAttr bug
    I'm sure there is a bug with ADOdb's GetMenu() function The documentation suggests 'use $moreAttr...
  5. [Snippet] Formatting a currency string
    The Shopp ecommerce plugin for WordPress has a little annoying "feature" that returns the product...

Posted by Kieran


Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.