homepage Welcome to WebmasterWorld Guest from 54.163.70.249
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Get that email address undercover!
BoneHeadicus




msg:443723
 3:38 am on Feb 13, 2001 (gmt 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.

 

sugarkane




msg:443724
 10:51 am on Feb 13, 2001 (gmt 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.

BoneHeadicus




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved