I've just installed Soupermail and I am trying to use the sample files however I keep getting the message "Unable to find or read the config file" why is this? The config file is in the same directory an I have told Soupermail where it is by using <input type="hidden" name="SoupermailConf" value="/examples/attachment.con">
Can someone please help.
Regards
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>90% of errors are due to $serverRoot being incorrectly set in the script. Check that the value you've given it is the path to your webserver's root directory (ie, where the HTML files on your webserver start). Under Apache, this is usually something like /usr/local/apache/htdocs and under IIS, this is usually c:/inetpub/wwwroot
Under some UNIX webservers, setting $serverRoot to $ENV{'DOCUMENT_ROOT'} may work (may not on some virtual server setups). However, DO NOT USE things like $ENV{'/path/to/html/files'} - it is meaningless! The text, DOCUMENT_ROOT, is a special keyword set by the webserver.
$serverRoot = $ENV{'DOCUMENT_ROOT'}; - OK sometimes
$serverRoot = '/path/to/html/files'; - OK assuming the path is correct
$serverRoot = $ENV{'/path/to/html/files'}; - never correct
The install helper is a first shot at trying to make it easier to determine what settings you need - however, its not guaranteed to work on all systems.. if it does give you problems, please let me know (providing as much information as possible too). The installer tries to check for common files and paths, and should be your first step in configuring Soupermail.
If you're running under a cgi-wrapped environment, you will probably have to use absolute path names to config files (ie. paths that start with a / character) rather than relative paths. <
My .pl file wasn't saved so I kept getting that same message. When I finally updated it with the info specified after the install, I think it worked. I got that message so many times it's hard to remember what finally worked. I know I had the $ENV in front of my path and that was the finally change to make the pl file work. After that, I think all my problems were just in the config file, but at least it was reading the config file. Check your .pl file and make sure it's set up correctly. Looks like your hidden message is correct. However, if your form file is in the same location as your .con file, you don't have to have the /examples/ in front of the config file. Hope you get it worked out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
typical first problem is the quick installer doesn't actually install a custom soupermailer.pl to the server. make sure you copy the info and upload it yourself.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just installed Soupermail and I am trying to use the sample files however I keep getting the message "Unable to find or read the config file" why is this? The config file is in the same directory an I have told Soupermail where it is by using <input type="hidden" name="SoupermailConf" value="/examples/attachment.con">
Can someone please help.
Regards
Paul
Did you read this from the FAQ?
>90% of errors are due to $serverRoot being incorrectly set in the script. Check that the value you've given it is the path to your webserver's root directory (ie, where the HTML files on your webserver start). Under Apache, this is usually something like /usr/local/apache/htdocs and under IIS, this is usually c:/inetpub/wwwroot
Under some UNIX webservers, setting $serverRoot to $ENV{'DOCUMENT_ROOT'} may work (may not on some virtual server setups). However, DO NOT USE things like $ENV{'/path/to/html/files'} - it is meaningless! The text, DOCUMENT_ROOT, is a special keyword set by the webserver.
$serverRoot = $ENV{'DOCUMENT_ROOT'}; - OK sometimes
$serverRoot = '/path/to/html/files'; - OK assuming the path is correct
$serverRoot = $ENV{'/path/to/html/files'}; - never correct
The install helper is a first shot at trying to make it easier to determine what settings you need - however, its not guaranteed to work on all systems.. if it does give you problems, please let me know (providing as much information as possible too). The installer tries to check for common files and paths, and should be your first step in configuring Soupermail.
If you're running under a cgi-wrapped environment, you will probably have to use absolute path names to config files (ie. paths that start with a / character) rather than relative paths. <
My .pl file wasn't saved so I kept getting that same message. When I finally updated it with the info specified after the install, I think it worked. I got that message so many times it's hard to remember what finally worked. I know I had the $ENV in front of my path and that was the finally change to make the pl file work. After that, I think all my problems were just in the config file, but at least it was reading the config file. Check your .pl file and make sure it's set up correctly. Looks like your hidden message is correct. However, if your form file is in the same location as your .con file, you don't have to have the /examples/ in front of the config file. Hope you get it worked out.
typical first problem is the quick installer doesn't actually install a custom soupermailer.pl to the server. make sure you copy the info and upload it yourself.