Click to See Complete Forum and Search --> : FormMail.pl Works fine in Safari, Explorer but not Netscape?


Jspirtos
07-09-2004, 03:11 AM
I am right now editing a FormMail.pl (version 1.92) from Matt's Script Archive and have run into a snag. For some reason my efforts work in Safari 1.2.2, Explorer 5.2 but not in Netscape 7.1 on my Mac. Now I haven't tried it out on a PC yet but am concerned over this problem.


Here's the URL of my test http://goretti.net/Contact.html


This is the Error Message I get:
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients. More information on filling in recipient form fields and variables can be found in the README file.


I've tried a number of recipient fills in the script with the same failure. This includes:

@recipients = &fill_recipients(@referers);

@recipients = &fill_recipients('goretti.net');

@recipients = ('goretti.net','IP Address');

@recipients = ('^jspirtos@goretti.net');

@recipients = (&fill_recipients('goretti.net''),
'^jspirtos@goretti\.net');


This is a part of the form HTML I'm using (edited from http://goretti.net/ContactBody.html ):

<FORM action="http://goretti.net/cgi-bin/FormMail.pl" method="post" enctype="text/plain">

<TR><TD VALIGN="middle" ALIGN="right"><FONT FACE="arial" SIZE="2"><B>Contact:</B></FONT></TD>
<TD WIDTH="12"></TD>
<TD COLSPAN="6"><select name="recipient" style="font-size:11px;">
<option selected>Who would you like to contact?
<option>----------------------
<option value="webmaster@goretti.net">Webmaster
<option value="jspirtos@goretti.net">Other Questions
</select></TD></TR>

<TR><TD></TD>
<TD WIDTH="12"></TD>
<TD COLSPAN="3"><INPUT type="submit" value="Send Email" style="font-size:11px;"><TD></TD><TD ALIGN="left"><INPUT type="reset" value="Reset" style="font-size:11px;"></TD></TR>



Is it a glitch with me or the script? What should I do?

knocknock.biz
08-04-2004, 02:18 PM
Hallo!

I saw the page and I bet the problem is how the data is encoded.

In the page you mention you use as enctype the text/plain type.

Try using "x-www-form-encoded" instead of "text/plain" in the enctype inside <FORM tag.

Kind Regards