Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Get that email address undercover!

     
3:38 am on Feb 13, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


Anybody got a way to get the hidden input field 'recipient' on formmail off the form page and into the script? In other words the script automatically knows where to send the forms.
10:51 am on Feb 13, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 6, 2000
posts:904
votes: 0


Yup.
A quick hack is to find the line:

print MAIL "To: $Config{'recipient'}\n";

in the send_mail subroutine, and change it to

print MAIL "To: user\@domain.com\n";

(the backslash before the @ is vital or it'll break)

The script checks for a recipient field in the submitted form, so you'll have to put a dummy address (eg bitbucket@nospamplease.com) in your HTML.

6:48 pm on Feb 14, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


Thanks.....it works fine that way.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members