Mail Messaging

Introduction to the Mail Interface

Cement defines a Mail Interfacearrow-up-right, as well as the default DummyMailHandlerarrow-up-right that implements the interface as a placeholder but does not actually send any mail.

circle-exclamation

Cement Extensions that Provide Mail Handlers:

API References:

Configuration

Application Meta Options

The following options under App.Metaarrow-up-right modify configuration handling:

Option

Description

mail_handler

The handler that implements the mail interface.

Working with Mail Messages

circle-info

The default dummy mail handler simply prints the message to console, and does not send anything. You can override the mail handler via App.Meta.mail_handler, for example using the SMTP Extension.

Creating a Mail Handler

All interfaces in Cement can be overridden with your own implementation. This can be done either by sub-classing MailHandlerarrow-up-right itself, or by sub-classing an existing extension's handlers in order to alter their functionality.

Last updated