action script sendemail action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%"
name="to"
cc, subject and body
from may be used but by default the address of %WIKIWEBMASTER% is used (this is set to: lae2@psu_NOSPAM_.edu)
%SENDEMAIL% anywhere on the page where the feedback should appear. feedbackSuccess and feedbackError. Default feedback messages are set below in Plugin Settings.
%SENDEMAIL{feedbackSuccess="Successfully sent" feedbackError="Something went wrong." }%
<form enctype="application/x-www-form-urlencoded" name="mailform" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" method="POST">
<p>To:<br /><input class="twikiInputField" id="to" name="to" size="30" type="text" value="" /></p>
<p>CC:<br /><input type="text" class="twikiInputField" id="cc" name="cc" size="30" value="" /></p>
<p>Subject:<br /><input type="text" class="twikiInputField" id="subject" name="subject" size="30" value="" /></p>
<p>Message:<br /><textarea class="twikiInputField" cols="80" name="body" rows="6"></textarea></p>
<p><input type="submit" class="twikiSubmit" value="Send message" %IF{"context SendEmailPluginEnabled" then='' else='disabled="disabled"'}% /></p>
</form>
%<plugin>_<setting>%, i.e. %CACHECONTENTPLUGIN_SHORTDESCRIPTION%
data/debug.txt) | Class name | Note |
|---|---|
sendEmailPluginNotification |
Used for feedback after sending a mail |
sendEmailPluginError |
Styles sendEmailPluginNotification in case of an error |
SendEmailPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/SendEmailPlugin.txt | Plugin topic |
lib/TWiki/Plugins/SendEmailPlugin.pm | Plugin Perl module |
| Plugin Author: | TWiki:Main.ArthurClemens |
| Plugin Version: | 16 May 2007 |
| Change History: | |
| 16 may 2007 | 1.1.3 Arthur Clemens: fixed bug in bin script that caused form query data to get emptied. |
| 15 may 2007 | 1.1.2 Arthur Clemens: improved error notifications. |
| 13 May 2007 | 1.1.1 Arthur Clemens: changed sendmail script invocation to be called through bin script sendemail; added CSS styles for feedback notification; fixed typo 'feedbackSucces'. |
| 05 May 2007 | 1.0 First release. |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| License: | GPL (GNU General Public License) |
| Benchmarks: | GoodStyle nn%, FormattedSearch nn%, SendEmailPlugin nn% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/SendEmailPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/SendEmailPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/SendEmailPluginAppraisal |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
sendemailplugin.css | manage | 0.3 K | 14 May 2007 - 14:39 | TWikiContributor | CSS styles |