Trigger Message to send e-mail [message #466] |
Sun, 17 December 2006 05:16 |
verbal
Messages: 4 Registered: December 2006
|
Junior Member |
|
|
How can I use this type of trigger for sending email? Is there any example or working code?
For what I know so far, I should create a task for this type of trigger and beforehand a pattern (there can't be a task without pattern). But sending e-mail doesn't sound like a pattern to me.
P.S. Greate framework. Your RBAC is amazing.
|
|
|
Re: Trigger Message to send e-mail [message #467 is a reply to message #466] |
Sun, 17 December 2006 05:42 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
There is no pattern for sending email as it is just a simple function which requires a few lines of code. It is not complicated enough to warrant its own transaction with model, view and controller.
All you have to do is include the mail() function in a custom method. It's not that complicated as I have done it in one of my applications.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: Trigger Message to send e-mail [message #524 is a reply to message #523] |
Wed, 10 January 2007 11:04 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Which one of scriptNext() and scriptPrevious() have you tried?
You only use scriptNext() when you wish to activate another task immediately, in which case you must specify the name of that task. When this next task terminates the current task will be resumed.
You use scriptPrevious() to terminate the current task and return to whatever task was being processed before.
Note that in order to update any workflow case your script must contain the following functions:
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|