Initial version posted. Thanks Hypertek Inc for sponsoring this work! Enjoy!
To do:
-
Expand Config.spec
-
Improve plugin docs
-
Add VarSENDMAIL topic
-
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!
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