To create a new cookbook entry, fill in or remove the sections below.
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.
Put the file as TellAFriend.php in your local directory and add
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
Requires 0.6.0 Attach:TellAFriend.1.3.txt
- 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.
from IP: 126.96.36.199 ip should be disabled by default for security reasons