TellAFriend
<< Search Highlight | Cookbook-V1 | Wiki Calendar >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
Goal
Allow a user to send the contents of a page by email.
A working example is on http://www.brambring.nl, it's in dutch, no worries the link is not that hard to find.
Solution
Put the file as TellAFriend.php in your local directory and add
- include_once("local/TellAFriend.php");
to your local.php.
Provide a link with action=mailform
- <a href='\$PageUrl?action=mailform'>Email page</a>
For example into the wikicmds section, or
- ThisPage:?action=mailform
as wikitext
Requires 0.6.0 Attach:TellAFriend.1.3.txt
Discussion
History
- 2004-02-12 Initial versions
Comments & Bugs
- If a user refreshes the page (after submitting) the mail will be send again (and again...). If someone has a nice solution for this....
- How about adding a cookie? Like the one i added in SimplePageCounter --keith
- There are no stylesheets included in the email (yet), so the email might look less nice as your web-page does.
Contributors
pmwiki-2.3.38 -- Last modified by {{}}?