Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
workflow:custom_function [2020/06/12 15:00] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
workflow:custom_function [2022/03/31 07:19] admin removed |
||
---|---|---|---|
Line 89: | Line 89: | ||
</file> | </file> | ||
- | The implementation is straightforward. It extends the AbstractFunction and implements run method. The email settings will be read from the [[jvx:common:setup:zones|application configuration]], and the email settings will be read from the input parameters. Finally, the email will be sent. | + | The implementation is straightforward. It extends the AbstractFunction and implements run method. The email settings will be read from the [[jvx:common:setup:zones|application configuration]], and the email settings will be read from the input parameters. Here's an example: |
+ | |||
+ | <file xml> | ||
+ | <application> | ||
+ | ... | ||
+ | <mail> | ||
+ | <smtp> | ||
+ | <host>smtp.yourserver.com</host> | ||
+ | <port>587</port> | ||
+ | <username>username</username> | ||
+ | <password>password</password> | ||
+ | <tlsenabled>true</tlsenabled> | ||
+ | <defaultsender>Noreply <noreply@yourserver.com></defaultsender> | ||
+ | </smtp> | ||
+ | </mail> | ||
+ | </application> | ||
+ | </file> | ||
+ | |||
+ | Finally, the email will be sent. | ||
But there's still one open question: how do we define the input parameters? | But there's still one open question: how do we define the input parameters? |