...
Implement a new RenderEntryCall method that will be called by the withcse directive from within the Newsletter Template just created.
This method should return true
to indicate that the string in this.value
should be rendered into the newsletter body.
cmsbs-conf/cse/plugins/de.pinuts.tutorial/callback/RenderEntryCallback.es6
:
...
To generate some random content we use the DemoData plugin. Include the dependency into your build.gradle
file and run gradle setup run
again once more:
Codeblock | ||
---|---|---|
| ||
... dependencies { runtime('de.pinuts.cmsbs:UM:7.34.1') runtime('de.pinuts.cmsbs:TestDriver2:2.0.6') runtime('de.pinuts.cmsbs:DemoData:1.0.4') } ...... |
Send Newsletter manually
Now manually create a List and some Entries with email addresses that are subscribed to that list.
Send a Newsletter manually based on the template created earlier.
Goto Tools / Mail Log to verify that emails have been sent and actually do contain the dynamically generated content.
Send Newsletter programmatically
cmsbs-conf/cse/plugins/de.pinuts.tutorial/shared/SendOfferListNewsletter.es6
:
...