DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:mailto
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
plugin:mailto [2010-10-10 11:13] gturri
Line 1: Line 1:
 +====== mailto plugin ======
  
 +---- plugin ----
 +description: mail the current page to several people
 +author     : Cédric Villemain
 +email      : cedric.villemain@dalibo.com
 +type       : action syntax
 +lastupdate : 2009-10-13
 +compatible : 2009-02-14b
 +depends    : 
 +conflicts 
 +similar    : 
 +tags       : email command
 +downloadurl: http://dalibo.org/_media/mailto.tgz
 +----
 +===== Download and Installation =====
 +
 +Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually.
 +
 +  * http://dalibo.org/_media/mailto.tgz
 +
 +==== Add the Button to the template ====
 +Add the button by adding the following lines to your template in main.php where
 +you want it to appear.
 +
 +<code php>
 +<?php   if ($INFO['isadmin']) { ?>
 +<form class="button" method="get" action="<?php wl($ID)?>">
 +  <div class="no">
 +      <input type="submit" value="Send as mail" class="button" />
 +          <input type="hidden" name="do" value="mailto" />
 +              <input type="hidden" name="id" value="<?php echo $ID?>" />
 +                </div>
 +                </form>
 +<?php } ?>
 +</code>
 +
 +Feel free to adjust the test for your requirements.
 +
 +==== Adjust setting ====
 +
 +Some config options are avaible and need to be adjusted via [[plugin:config|Configuration Manager]]
 +
 +===== Syntax and Usage =====
 +Simply put the following code into your page:
 +<code>
 +~~MAILTO:Real Name<real.name@example.org>,Real CC1<real.cc1@example.org>,Real CC2<real.cc2@example.org>,~~
 +</code>
 +
 +It help the plugin know the emails, TO first, then all others are CC.
 +
 +It is replaced by an apprioriate sentence depending the mail have already been sent or not.
 +
 +===== README =====
 +
 +This plugin actually send the raw wiki and the title as mail subject.
 +
 +===== TODO =====
 +There are still some TODOs in the code, and one of the most important is to make **renderer plugin** to output an email.
plugin/mailto.txt · Last modified: 2021-01-23 20:28 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki