Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fEmail not working

posted by monster 9 years ago

Hi All,

I get this error on a windows server when using fEmail

Warning: shell_exec() function.shell-exec: Unable to execute 'ipconfig /all' in C:
BLAH
flourish
fEmail.php on line 417

Any help would be appreciated.

What that means is that the user the web server is running as does not have permissions to execute ipconfig. For right now you can edit the permissions on C:\\Windows\\System32\\ipconfig.exe and add the web server user with execute permissions. Or if you just want to wait a little bit, I'll make a fix to fEmail at lunch time.

posted by wbond 9 years ago

thanks wbond happy to wait for the fix as they wont allow me to edit the user permissions :(

posted by monster 9 years ago

This should be fixed in r899

posted by wbond 9 years ago

Notice: Undefined index: WINDIR in C:
BLAH
flourish
fEmail.php on line 418

doesnt recognise the server variable :(

posted by monster 9 years ago

might have to use $_ENV['windir']; ?

posted by monster 9 years ago

All three of my Windows environments had $_SERVER['WINDIR'], but only two had $_ENV['windir']. Either way, with r900 I've re-written the code to get the fully-qualified domain and it not longer requires executing a command-line program, so you should be all set. Let me know if you have any trouble.

posted by wbond 9 years ago