Projects / PHP FormMail

PHP FormMail

PHP FormMail is a PHP script conversion of the original FormMail.pl, but with many security and spam related fixes and improvements. Some customization options are removed for simplicity while keeping functionality and improving it where neccessary. An ASP version of this script is also included.

Tags
Operating Systems
Implementation

Recent releases

  •  05 Mar 2003 08:00

    Release Notes: A bug with the sorting of input fields that resulted in blank values being returned was fixed.

    •  20 Jan 2003 00:37

      Release Notes: A bug when using PHP earlier than version 4.1.x has been fixed. A bug with the field sorting code that sometimes caused no form field values to be present in the email messages has been fixed. Code has been added to strip out slashes if magic quotes are enabled.

      •  06 Jun 2002 17:17

        Release Notes: A sort field for specifying a custom sort order, and other minor code changes.

        •  03 May 2002 16:39

          Release Notes: An ASP port for IIS, and a fix for a minor bug which broke the $must variables.

          •  11 Apr 2002 21:49

            Release Notes: A new ability to specify multiple recipient email addresses in the recipient field, and a new ability to set email address ban pattern masks to deny email from matching return addresses.

            Recent comments

            13 Aug 2005 20:40 meuon

            Formmail.asp and formmail.php
            Just sharing a formmail.php variant that sends the form responses as an ASCII e-mail, Table formatted HTML, and Pseudo-XML, and allows retrieval as a table from the server as HTML/Table, CSV and Pseudo-XML. - ie; stores data on server, with multiple form names. http://geeklabs.com/code/gl-formmail.php.txt

            and a simple formmail.asp that sends the data as both a plain text and HTML/Table e-mail. http://geeklabs.com/code/gl-formmail.asp.txt

            15 Apr 2002 15:01 nutbar

            ASP conversion
            Over the next little while, I will be porting this PHP FormMail script to ASP so that users with domains being hosted on servers running IIS can use this script with no worries about porability.

            If anyone wants to help or has any questions, please let me know (I'm just learning ASP so help is more than welcome!)

            04 Apr 2002 10:30 gilgongo

            Re: What the author forgets to mention...
            Just seen the fact you've updated the script and posted the fact on your site. You're right, I *am* a slacker! And I'm happy now (kinda).

            04 Apr 2002 10:27 gilgongo

            Re: What the author forgets to mention...
            Why not simply have the script read the addresses from a local file? If the recipient address isn't in the file, it won't send the mail.

            -- sorry, really should be discussing this off FM... please mail me direct if you want to know more.


            >
            > % Is that in order to prevent
            > spammers
            > % using the script, he's written it
            > so
            > % that it will only send mail to users
            > on
            > % the SAME DOMAIN as the script
            > itself.
            >
            >
            > Do you want to have the ability to
            > send out emails to addresses other than
            > the site domain? I set it up the way it
            > currently is because the recipient email
            > can be faked by just posting your own
            > value since it is set in the form
            > itself. I could set up something in the
            > script that would let you add valid
            > email addresses, but I tried to avoid
            > requiring people to edit the script to
            > use it so this is why I had not added
            > this feature.


            03 Apr 2002 09:52 nutbar

            Re: What the author forgets to mention...

            > Is that in order to prevent spammers
            > using the script, he's written it so
            > that it will only send mail to users on
            > the SAME DOMAIN as the script itself.


            Do you want to have the ability to send out emails to addresses other than the site domain? I set it up the way it currently is because the recipient email can be faked by just posting your own value since it is set in the form itself. I could set up something in the script that would let you add valid email addresses, but I tried to avoid requiring people to edit the script to use it so this is why I had not added this feature.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.