ggscheidle Posted April 18, 2004 Posted April 18, 2004 Hi Guys: I'm pleased to announce it's been a long time since I've needed help, but I found myself in a bind. I've created a pretty simple form called form.hml as well as a config file for it named formconfig.txt. Both the form and the config file I have placed in the root directory. I'm using soupermail (which I've used before) but everytime I fill out a test form and submit it, I get an error saying that it was unable to find or read the config file. Soupermail.pl is in my cgi-bin directory and I have done a chmod 755 on that file as well as the config file. Is MIME already installed or do I need to install that too? Below I've listed the items that needed to be changed and what I changed them to. Can you eyeball something that's incorrect? In the form itself: <form method="POST" action="/cgi-bin/soupermail.pl"> <input type="submit" value="Send Assigment" name="B1"> <input type="hidden" name="SoupermailConf" value="/home/integra5/html/formconfig.txt"> (I've also had this value set to just value="formconfig.txt" as well<input type="reset" value="Clear Form" name="B2"> In the config file: mailto:rj@integraappraisers.com subject:appraisal assignment In the soupermail.pl file: $soupermailAdmin = 'rj@integraappraisers.com'; $serverRoot = '/home/integra5/html'; $privateRoot = ''; $mailhost = ''; $mailprog = '/usr/sbin/sendmail'; Quote
TCH-Don Posted April 18, 2004 Posted April 18, 2004 try putting the config file in a folder named formconfig, then it would be Quote
ggscheidle Posted April 19, 2004 Author Posted April 19, 2004 I just tried your suggestion and unfortunatley I'm getting the same message. Quote
TCH-Don Posted April 19, 2004 Posted April 19, 2004 have you gone through their online manual? http://soupermail.sourceforge.net/manual.html I am not much help with pearl, I prefer one of the many free php form scripts out there. Quote
ggscheidle Posted April 19, 2004 Author Posted April 19, 2004 Thanks Don - that was the first thing I tried. I'll keep pluggin away............... Quote
borfast Posted April 19, 2004 Posted April 19, 2004 I've never used that script but from the code you posted, the problem appears to be on the path you're passing to the script: <input type="hidden" name="SoupermailConf" value="/home/integra5/html/formconfig.txt"> should probably be <input type="hidden" name="SoupermailConf" value="/home/integra5/public_html/formconfig.txt"> Quote
TCH-Don Posted April 19, 2004 Posted April 19, 2004 By their on line manual The path to the configuration file must be relative to the web server's root directory. Do not use URLs or absolute paths to the configuration file. so is what they recommend. Quote
ggscheidle Posted April 19, 2004 Author Posted April 19, 2004 OK - I'm giving up on soupermail. It's just frustrating as I have used this script before and it's currently working on a huge form I've created at my workplace. Can you suggest a script that I can use for a simple form where the forms contents are able to be sent to an email address instead of a database? Quote
borfast Posted April 19, 2004 Posted April 19, 2004 (edited) Try Jack's Ultimate Form Mail: http://surefirewebdesign.com/scripts/ Edited April 19, 2004 by TCH-Raul Quote
ggscheidle Posted April 20, 2004 Author Posted April 20, 2004 Thanks for the info. I am also happy to announce that I did get the soupermail script after many frustrating tries. Believe it or not, the path to sendmail was not as it was stated that it should be. Thanks for eveyone's help Gina Quote
TCH-Don Posted April 20, 2004 Posted April 20, 2004 Glad you have it working What was the path for sendmail that you used? $mailprog = '/usr/sbin/sendmail'; Quote
mdedens Posted April 28, 2004 Posted April 28, 2004 Actually I was having the same problem... this is the correct path to sendmail: /usr/lib/sendmail Also, for some reason when I put my html file with the form and my config file in my root directory I get an error that it cannot be explicitly read. Did you ever have this problem? As soon as I create a new folder and put both the html and form file there, it works great. But I can't do that as my index page needs to be in the root dir. WIERD!!! Thanks for any help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.