To 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 emailform:xyz
markup to your wiki pages. The xyz
is a name that you can then associate with an email address in your local customization file (e.g. local/config.php). For example:
$EnableEMailFormSecurity = true; include_once('cookbook/emailform.php'); $EMailFormAddresses['Pm'] = 'pmichaud@pobox.com'; $EMailFormDefaultSender = 'wiki@example.com'; $EnableEMailFormUTF8 = false;
This gives the markup emailform:Pm
which creates a mailform that will send electronic mail to pmichaud@pobox.com
. If the sender leaves the "sender address" field empty, the mail will appear to come from wiki@example.com
.