Mercurial > repos > brinkmanlab > sendmail
comparison sendmail.xml @ 0:126f37fe9f20 draft default tip
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/sendmail commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
| author | brinkmanlab |
|---|---|
| date | Fri, 24 Jan 2020 17:47:27 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:126f37fe9f20 |
|---|---|
| 1 <tool id="sendmail" name="Send Email" version="1.0" profile="16.04"> | |
| 2 <description>Send mail using templates and include information about datasets</description> | |
| 3 <command><![CDATA[ | |
| 4 #from galaxy.util import send_mail | |
| 5 $send_mail($__app__.config.email_from, $to, $subject, "", $__app__.config, open($body).read()) | |
| 6 ]]></command> | |
| 7 <configfiles> | |
| 8 <configfile name="body"><![CDATA[ | |
| 9 #set $template_path = '/'.join([$__tool_data_path__, "sendmail", $template]) | |
| 10 #import os | |
| 11 #if '..' not in $template and $os.path.isfile($template_path) | |
| 12 #include $template_path | |
| 13 #else | |
| 14 <html> | |
| 15 <body> | |
| 16 $data.name is now complete. | |
| 17 #if $hasattr(__app__.config, "public_url") | |
| 18 You can view it <a href="${__app__.config.public_url}/datasets/${data.dataset.id}/display">here</a>. | |
| 19 #end if | |
| 20 </body> | |
| 21 </html> | |
| 22 #end if | |
| 23 ]]></configfile> | |
| 24 </configfiles> | |
| 25 <inputs> | |
| 26 <param name="data" type="data" format="data" multiple="true" label="Data" /> | |
| 27 <param name="to" type="text" label="To" /> | |
| 28 <param name="subject" type="text" value="Job complete" label="Subject" /> | |
| 29 <repeat name="extras" title="Extras"> | |
| 30 <param name="extra" type="text" label="Extra data to make available in the template body" /> | |
| 31 </repeat> | |
| 32 <param name="template" type="text" value="template.html" label="Template" help="Relative path of template to use in tool-data/sendmail/" /> | |
| 33 </inputs> | |
| 34 <help><![CDATA[ | |
| 35 Send mail using templates and include information about datasets. | |
| 36 | |
| 37 Templates are parsed using Galaxies Cheeta Template Engine. The variables available are everything that is available to a tool including: | |
| 38 - $data Dataset instance passed to the tool input | |
| 39 - $to Reciepent address specified in the tool parameters | |
| 40 - $subject Subject specified in the tool parameters | |
| 41 - $extras[].extra List of extras specified in the tool parameters | |
| 42 - $template Relative path to the current template | |
| 43 | |
| 44 See this tools xml for an example template. | |
| 45 ]]></help> | |
| 46 <citations> | |
| 47 <citation type="doi">10.5281/zenodo.3364789</citation> | |
| 48 </citations> | |
| 49 </tool> |
