|
Cookbook /
EMailForm(redirected from Cookbook.MailForm) Summary: Provide a web form that sends email to fixed email addresses
Version: 2007-11-10
Prerequisites: pmwiki-2.0.0 or later
Status: stable
Maintainer: Hombre
Discussion: EMailForm-Talk
Categories: FormTools
Questions answered by this recipe
DescriptionThe emailform.zipΔ script allows you to place a small web form into a wiki page that sends email to fixed email addresses. It can be modified to send e-mails using utf-8 encoding, and to use a simple but effective SPAM protection. Moreover it can be styled using css and produces xhtml valid code. Installation and ConfigurationTo use the recipe, simply unpack it into the directory containing your pmwiki installation. The emailform.php file should go into the cookbook directory, the other files should go into pub/emailform/. The script adds a $EnableEMailFormSecurity = true;
include_once('cookbook/emailform.php');
$EMailFormAddresses['Pm'] = 'pmichaud@pobox.com';
$EMailFormDefaultSender = 'wiki@example.com';
$EnableEMailFormUTF8 = false;
This gives the markup NotesRequired variables
Optional variables for customizing the look and functionality of the form
Other strings are all internationalized - the default values belong in the 'en' (English) language:
$XL['en']['MFsuccess'] = 'Message has been sent successfully.';
$XL['en']['MFfailure'] = 'Message could not be sent.';
$XL['en']['MFerror'] = 'An error has occurred.';
$XL['en']['MFwrongcode'] = 'Wrong security code. Are you sure you are human?';
$XL['en']['Your address:'] = 'From:';
--noe - to be complete ... is it :
$XL['en']['Your Address:'] = 'Your Address:';
$XL['en']['Subject:'] = 'Subject:';
$XL['en']['Message:'] = 'Message:';
$XL['en']['Send'] = 'Send';
-- and even...
$XL['en']['Repeat Security Code:'] = 'Repeat Security Code:'
CSS stylingThe form can be styled using css. To alter the look of the emailform, simply edit the Older StuffThe mailform.phpΔ script allows you to place a small web form into a wiki page that sends email to fixed email addresses. It can be modified to send e-mails using utf-8 encoding, and to use a simple but effective SPAM protection. Moreover it can be tyle using css and produces xhml valid code. Mailform.php wont be supported for releases later than v 1.5. The emailform-s.phpΔ script adds a 3-digit confirmation code to reduce spam, similar to CommentBoxPlus, but without the JavaScript. It is based on emailform.php above. Formatting is a bit kludgy. Example on http://www.cricket.onebit.ca/Main/Feedback2; if the form moves, you can reach it from the site's sidebar. The old emailform1_2.phpΔ is still available here. Future planning
Release Notes
See AlsoContributors
CommentsSee discussion at EMailForm-Talk User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |