create new tag
, view all tags

SendMailPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on SendMailPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please file bug reports in the SendMailPlugin bug database.

SendMailPlugin Feedback and Development

Initial version posted. Thanks Hypertek Inc for sponsoring this work! Enjoy!

To do:

  • DONE Expand Config.spec
  • DONE Improve plugin docs
  • DONE Add VarSENDMAIL topic
  • DONE Explain difference to SendEmailPlugin

-- PeterThoeny - 2012-03-14

Perhaps you could note how to (if possible) embed this in a template ( la TopicCreatePlugin), so that you can send an email whenever a topic is created.

-- AaronLWalker - 2012-03-14

This should work. Untested example for template topic:

%STARTSECTION{ type="expandvariables" }%%SENDMAIL{ action="%NOP%send" ... }%%ENDSECTION{ type="expandvariables" }%

The NOP get removed at time of topic instantiation. If you confirm that this works I can update the docs accordingly.

Would a new excludetopic="MyTemplate" or disable="self" parameter be useful? If present, it would disable the send action for the specified topic.

-- PeterThoeny - 2012-03-14

It looks like action="send" does not work. But excludetopic="MyTemplate" should work.

-- PeterThoeny - 2012-03-15

New plugin version published: Added configure settings; added excludetopic parameter; added VarSENDMAIL doc; added examples.

Idea for enhancement: Add an action="save" to take e-mail action on topic save.

-- PeterThoeny - 2012-03-15

In case it helps someone, in the "Send E-mail on Topic Creation" example, I wanted to put in the email some form fields of the new topic I'm creating, but they aren't quite available yet, so FORMFIELD does not work. URLPARAM, however, does! smile

 text="%WIKINAME% created a new topic
       URL:   %SCRIPTURL{"view"}%/%WEB%/%TOPIC%
       Desc:  %URLPARAM{"EventDescription"}%
       Start: %URLPARAM{"TargetStartDate"}% %URLPARAM{"TargetStartTime"}%
       End:   %URLPARAM{"TargetEndDate"}% %URLPARAM{"TargetEndTime"}%
       RIN:   %URLPARAM{"RelatedIncidentNumber"}% "

-- Aaron Walker - 2015-01-14

Thanks Aaron, I updated the plugin with relevant docs.

-- Peter Thoeny - 2015-01-23

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2015-01-23 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.