FormMail

W

wayne

My ISP has cgimail, formmail (NMS v 3.05) and wwwboard available for my use.

I had the scripts working in the past, but when attempting to uss css to
style the forms, I somehow broke all of the forms.

I reinstalled the scripts using the ISP's tool, and cannot get them
setup again.

If I use the standard set-up, I receive a styled message that the
recipient is not authorized. When I change the settings in FormMail.pl
to include those I want to sent mail to in either @reipients or
%recipients alias, I then get another error:

Application Error

An error has occurred in the program

close sendmail pipe failed, mailprog=[/usr/lib/sendmail -oi -t] at (eval
8) line 108.

Doing a google search does not give me much to work with. Are any users
here familiar with formmail?

Should I be using cgimail instead?

Wayne
 
W

wayne

Neal said:
Post a URL.


http://www.glenmeadows.com/cathy.html

is supposed to send an email to the management company. Without an
email addresss, I get an error from formmail stating invalid address.
With an address, I receive the previously posted error every time, even
though the address I'm trying to send to is in the %reci[pient_alias list.

Wayne
 
N

Neal

Neal said:
Post a URL.


http://www.glenmeadows.com/cathy.html

is supposed to send an email to the management company. Without an
email addresss, I get an error from formmail stating invalid address.
With an address, I receive the previously posted error every time, even
though the address I'm trying to send to is in the %reci[pient_alias
list.

Try deleting formmail and re-uploading it. See if the error persists. Mind
how you're uploading the script.

If that doesn't solve it, check a newsgroup devoted to perl.
 
W

wayne

Neal said:
Neal said:
My ISP has cgimail, formmail (NMS v 3.05) and wwwboard available for
my use.



Post a URL.



http://www.glenmeadows.com/cathy.html

is supposed to send an email to the management company. Without an
email addresss, I get an error from formmail stating invalid address.
With an address, I receive the previously posted error every time,
even though the address I'm trying to send to is in the
%reci[pient_alias list.


Try deleting formmail and re-uploading it. See if the error persists.
Mind how you're uploading the script.

If that doesn't solve it, check a newsgroup devoted to perl.
Deleted the file, reloaded from host script, same issue. Nothing different.

Thanks for the input.

Wayne
 
M

mbstevens

wayne said:
Neal said:
Neal wrote:


My ISP has cgimail, formmail (NMS v 3.05) and wwwboard available for
my use.



Post a URL.



http://www.glenmeadows.com/cathy.html

is supposed to send an email to the management company. Without an
email addresss, I get an error from formmail stating invalid address.
With an address, I receive the previously posted error every time,
even though the address I'm trying to send to is in the
%reci[pient_alias list.


Try deleting formmail and re-uploading it. See if the error persists.
Mind how you're uploading the script.

If that doesn't solve it, check a newsgroup devoted to perl.
Deleted the file, reloaded from host script, same issue. Nothing
different.

Thanks for the input.

Wayne
I'm getting the same errors.

In your form...
<input type="hidden" name="recipient" value="cathy" />
is referring to the recipient alias *Hash* which should look something like:
$recipient_alias = (
'cathy' => '(e-mail address removed)',
'moe' => '(e-mail address removed)',
'1' => '(e-mail address removed)',
);
So, you have this correct? Fine.
_____________

But I don't think it has anything to do with the script's aggressive checks
of the sender's email address. This recipient_alias hash is about the
receiver's (your or your client's) email addresses, not the sender's
address.

Your form seems to be set up correctly (according to the formmail docs):
<input type="text" name="email" value="Your Email?" />
AFAIK, the only variable in the script itself that you can set that refers
to this is:
$address_style
....so you might try fooling around with that. Don't know if it will help.
You could look at the function that does the input error checking, too, the
CGI::NMS::Validator - validation methods in the script. Trace around and
see if there is anything else you could set that would affect this section.
______________________

Do you really need all the features supplied by this script?

Just my opinion, but 77K is one hell of a lot of firepower to throw at a
simple mail form. Any book on CGI/Perl will have a program of about 50
*lines* (under 2K) that will do what most people need, you'll learn a
little perl making the mods to get it running on your server, and it'll
load and run faster.
 
W

wayne

mbstevens said:
wayne wrote:

Neal said:
Neal wrote:




My ISP has cgimail, formmail (NMS v 3.05) and wwwboard available for
my use.



Post a URL.



http://www.glenmeadows.com/cathy.html

is supposed to send an email to the management company. Without an
email addresss, I get an error from formmail stating invalid address.
With an address, I receive the previously posted error every time,
even though the address I'm trying to send to is in the
%reci[pient_alias list.


Try deleting formmail and re-uploading it. See if the error persists.
Mind how you're uploading the script.

If that doesn't solve it, check a newsgroup devoted to perl.

Deleted the file, reloaded from host script, same issue. Nothing
different.

Thanks for the input.

Wayne

I'm getting the same errors.

In your form...
<input type="hidden" name="recipient" value="cathy" />
is referring to the recipient alias *Hash* which should look something like:
$recipient_alias = (
'cathy' => '(e-mail address removed)',
'moe' => '(e-mail address removed)',
'1' => '(e-mail address removed)',
);
So, you have this correct? Fine.
_____________

But I don't think it has anything to do with the script's aggressive checks
of the sender's email address. This recipient_alias hash is about the
receiver's (your or your client's) email addresses, not the sender's
address.

Your form seems to be set up correctly (according to the formmail docs):
<input type="text" name="email" value="Your Email?" />
AFAIK, the only variable in the script itself that you can set that refers
to this is:
$address_style
...so you might try fooling around with that. Don't know if it will help.
You could look at the function that does the input error checking, too, the
CGI::NMS::Validator - validation methods in the script. Trace around and
see if there is anything else you could set that would affect this section.
______________________

Do you really need all the features supplied by this script?

Just my opinion, but 77K is one hell of a lot of firepower to throw at a
simple mail form. Any book on CGI/Perl will have a program of about 50
*lines* (under 2K) that will do what most people need, you'll learn a
little perl making the mods to get it running on your server, and it'll
load and run faster.

Thank you for your help. I will check on a smaller script file.

Update- I called my ISP technical support this morning. The technician
fixed the problem in about 30 seconds.

I uploaded the news=est version of NMS formmail and then received a
different error message - one stating the script could not find
/usr/lib/sendmail. The technician asked for the file containing the
form, did some typing and said it was fixed. He said he fixed a line in
the script. I did a compare on the file he fixed and the one I
uploaded, the difference was:

orginal:
$mailprog '/usr/lib/sendmail'
fixed:
$mailprog '/usr/sbin/sendmail'

The file installed by the ISP's installation routine has
'/usr/lib/sendmail'


Wayne
 
N

Neal

I uploaded the news=est version of NMS formmail and then received a
different error message - one stating the script could not find
/usr/lib/sendmail. The technician asked for the file containing the
form, did some typing and said it was fixed. He said he fixed a line in
the script. I did a compare on the file he fixed and the one I
uploaded, the difference was:

orginal:
$mailprog '/usr/lib/sendmail'
fixed:
$mailprog '/usr/sbin/sendmail'

The file installed by the ISP's installation routine has
'/usr/lib/sendmail'

I figured it was something like that, too bad I fell asleep last night.
Glad it got fixed up.

Now please, next time on a newsgroup, trim the quotes a little! Leave just
enough for context and attribution, snip the rest.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top