Jump to content

Recommended Posts

Posted

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';

Posted

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">

Posted

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.

Posted

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?

Posted

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

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...