Forum Moderators: phranque

Message Too Old, No Replies

FormMail.pl

not working

         

chethanv

7:38 am on Aug 3, 2005 (gmt 0)

10+ Year Member



Hi there,

I been trying to use FormMail.pl script on my server, everything works fine when submit button is pressed, the thanks.html file loads, but i dont get the form results emailed. Can anyone please help?

moose606

1:59 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



This is how I code my form mail:
<FORM METHOD=POST ACTION="http://www.yourwebsite.com/cgi-bin/formmail/FormMail.pl">
<input type=hidden name="recipient" value="your email address">
<input type=hidden name="subject" value="Your website Feedback">

<input type=hidden name="redirect"
value="http://www.yourwebsite.com/thanks.html">

your email address must include your website address:
john@yourwebsite.com
Sometimes you have to play with it to get it to work. I use aliases with my email accounts, and then forward them. This gets around the security features of formmail( Your email address must include your domain).
Hope this helps.

chethanv

10:20 am on Aug 4, 2005 (gmt 0)

10+ Year Member



Thanx for the reply. This is my code, can u see if there is any problem

<FORM method="POST" action="/cgi-bin/FormMail.pl">
----
----
<INPUT type="hidden" name="subject" value="order">
<INPUT type="hidden" name="recipient" value="chethanv@domain.com">
<INPUT type="hidden" name="redirect" value="http://www.domain.com/thanks.html">
<INPUT type="submit" value="Send Message"> <INPUT type="reset"></FORM>

and the variable in FormMail.pl is as follows:

$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('domain.com');
@recipients = &fill_recipients(@referers);

I really dont know why its not working...There is no error message. It loads the thanks.html but i dont get email.

JKMitchell

7:29 pm on Aug 4, 2005 (gmt 0)

10+ Year Member



$mailprog = '/usr/sbin/sendmail -i -t';

Your copy of sendmail is in the /usr/sbin directory I take it?

chethanv

12:36 am on Aug 5, 2005 (gmt 0)

10+ Year Member



yes it is in "sbin" as advised by my isp provider.