The Dummy Extension provides several placeholder type handlers to either mock operations or provide local-only usage during development. A perfect example is the
DummyMailHandlerthat can be use during development or staging to prevent real email messages from being sent externally.
- No external dependencies
This extension supports the following configuration settings under a
Default recipient address (list, or comma separated depending on the config handler in use).
Default sender address
Default carbon-copy addresses (list, or comma separated depending on the config handler in use)
Default blind-carbon-copy addresses (list, or comma separated depending on the config handler in use)
Default subject line
Additional string to prepend to the subject line of all messages
Example: Using Dummy Extension
from cement import App
label = 'myapp'
extensions = ['dummy']
output_handler = 'dummy'
template_handler = 'dummy'
mail_handler = 'dummy'
with MyApp() as app: