mycontroller-org / mycontroller-v1-legacy

The Open Source Controller
http://www.MyController.org
Apache License 2.0
148 stars 90 forks source link

Add script hook to email sending feature #350

Open RURon opened 7 years ago

RURon commented 7 years ago

In order to be able to access node data from within an email template (that is invoked by the send email operation) I suggest to be able to also optionally specify a script within the send email operation that will generate the output which is then generating the email body.

That way a script that generates a html output could be used without further modifications to also supply an email mail body (in html format).

In that way it would maybe make sense to be able to check within the script (by accessing a global variable / function) if the script is invoked by the send email operation because then a script could be used to create some visual report for the dashboard but at the same time as well with certain modifications needed when the script output should be sent by email.