Forum Moderators: phranque
<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.
<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.