********************* * SENDEMAIL * ********************* * * Version 1.0 - (2010/04/24) * * This script is used to provide a mailform and send the mail * * SOFTWARE LICENSE: GPL * (C) 2010 Hans-Georg Bork * * This script is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this script; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * written by Hans-Georg Bork (hgb@users.sourceforge.net) There's actually not much to read about :) You'll find within the script some dutch words, this is because I wrote this originally for a dutch website; check the contact page on http://deherleving.nl if you like. Requirements: You'll need access to a webserver (whichever cheap webspace will do) and that server has to have the ability to run PHP scripts (most have that). Installation: Just copy sendemail.php to whichever localtion reachable via a webbrowser and then point the browser to it, e.g. if you have access to example.com and you copy sendemail.php to the root directory of that webdomain, you just open http://example.com/sendemail.php and you'll see the form. That's it actually. Configuration: Open sendemail.php with a text editor (if on Windows, assure to use notepad, but not wordpad, word or any other text processing application). Just below the copyright and warranty information you'll see : $onderwerpadres = array( "I want to send you my compliments for this nice form" => "hgb@users.sourceforge.net", "You removed the compliment text? Type here a different one ..." => "you@your_provider.com", "... and many more if you like ..." => "email@example.net", "This last line may not end with a komma ','" => "email@example.org" ); You may want to change any text which is enclosed in "", do __NOT__ change anything else, except if you know for sure what you're doing. Assure that the last line before ); does not have a komma at the end, since that would end in an error message. Every text before => will be the subject of the email which should be sent and the text after => is just the address of the recipient. As you can see, you can use as much subjects and recipients as you like (remember that there must no komma at the last line). That's it. If you like this mailform or want to send a bugreport or something more valuable, please send me a mail via http://hgbhome.net/sendemail.php