Obtain permission before redistributing this software over the Internet or in any other medium. For any IP addresses in @referers, the following address formats are valid: [A-Za-z0-9_-\.][email protected][192.168.1.1] where 192.168.1.1 is the specified IP address in @referers. Version 1.8 08/02/01-Fixed the recipients code to allow multiple recipients using the 'recipients' form field and commas. The script, FormMail.pl, needs to be placed in your server's cgi-bin and the anonymous WWW user must have the ability to read/execute the script.
SitePoint Sponsor User Tag List Results 1 to 2 of 2 Thread: FormMail and recipients problem Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Or: @recipients = ( '^[email protected]\.com'); Go to Solution 2 Comments LVL 51 Overall: Level 51 Scripting Languages 18 Message Expert Comment by:ahoffmann2005-02-15 either your mail server did not accept the How do computers remember where they store things? If you need a regular expression matching solution even more specific than the above examples explain, I recommend picking up a book on Perl.
chumpsoft, inc. - online survey software Matt's Script Archive FormMail >Readme Download FAQ Guestbook WWWBoard Form Configuration The action of your form needs to point towards this script (obviously), and the method must be POST or GET in capital letters. This field is useful for identification purposes and will also be put into the From: line of your message header. COPYRIGHT NOTICE:Copyright 1995 - 2009 Matthew M.
In other words, please ask first before you try and # # make money off of my program. # # # # Obtain permission before redistributing this software over the Internet Version1.301/21/96-Much needed update finally completed -Added form fields: env_report, bgcolor, background, link_color, vlink_color, title, text_color, return_link_title, return_link_title, and required. -Security hole, which allowed any user on any system to bum off This is helpful when you have many form fields and need to insert a line wrap. Overview FormMail is a universal WWW form to E-mail gateway.
This is because the important form fields, like email, subject, etc. Version 1.91 is an update attempting to get rid of the worst problems that have been made public in: http://www.monkeys.com/anti-spam/formmail-advisory.pdf Versions 1.92 and 1.93 fixed a couple more You should either include all domain names that you wish to have FormMail send e-mails to in your @referers array or tailor the @recipients array by hand. @valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER', I have read the read me and it said to edit the @recipients part in the script. (Not using te Site Manager to edit i am using a Perl Editor) I
Wright All Rights Reserved. http://www.scriptarchive.com/readme/formmail.html#setting_up torrin10-15-2005, 10:25 AMAlso, when you created your form, did you define recipient? Browse other questions tagged html perl cgi formmail or ask your own question. Of course, you will need to add otherhost.com into your @referers array if a form is on their host!
Spamassassin is marking it as spam. Or: @recipients = ( '^[email protected]\.com'); if you want just webmaster to be a authorized recipient of the form. 0 Write Comment First Name Please enter a first name Last Name Please Syntax:For a active link color of Blue: Some possible uses of this script You want to have a form that will be mailed to you, but aren't sure Pro Comparison Switch Your Store to LexiConn Add-On Modules Live Example Stores Try a 7 Day Demo Magento Solutions Magento Shared Magento VPS Magento Dedicated Servers Easy Store Transfer/Migration Optimization Strategies
You can reference the script snippet below to find the "@referers" variable. This will combat the % hack and other known exploits. -The options for sendmail were moved into the $mailprog variable and -i was added so that single periods on a line What this means in english is that the only valid addresses are those to usernames that include only letters, numbers, underscores, dashes or periods and an exact domain name or IP Version1.9204/21/02-Removed cross-site scripting vulerabilities by converting all <, >, & and " into their HTML equivalents when displayed on a web page.
As of version 1.8, You can include multiple recipients by separating the values with commas. This is a security patch that was advised at http://www.securityfocus.com/bid/1187 and was implemented by Peter D. In order for an e-mail to be sent to the recipient defined in a form, the recipient e-mail address must match one of the elements in the @recipients array. If you want to require an email address with valid syntax, add this field name to the required field.
etc,etc The only 2 lines I have modified in FormMail.pl are: Code: @referers = ('domainname','ip.add.re.ss'); @recipients = ('^feedback\@domainname\.com'); Doing it this way, I only wanted the form details emailed to one Version 1.6 05/02/97-Sorting of fields by default was fixed to now sort in the order the fields are passed to FormMail from the web browser, which is usually the same order This field will not be used if you have the redirect field set, but it is useful if you allow the user to receive the report on the following page, but You can find out more information about the move and how to open a new account (if necessary) here.
torrin10-15-2005, 10:22 AMAccording to the documentation this is how it should be done. @recipients = (&fill_recipients('domain.com','sub.domain.com'), '^[email protected]\.com', '^[email protected]\.com'); Maybe that fill_recipients thing has to be there. The top part of the html: Code: