phylogram / monolog-wp-mail-handler
A Monolog Handler to send mails with wordpress' wp_mail function. This only will work in wordpress. Very simple :-)
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:project
pkg:composer/phylogram/monolog-wp-mail-handler
Requires
- monolog/monolog: ^2.1
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2025-09-29 02:43:21 UTC
README
This library contains one class, that can be registered to send mails with wordpress' wp_mail function.
Does only work in wordpress, which is not listed as dependency in composer.
For using this, you should check out monolog's documentation: https://github.com/Seldaek/monolog/
Example:
use Monolog\Logger; use phylogram\MonologWPMailHandler\WPMailHandler; $logger = new Logger('channel'); $logger->pushHandler(new WPMailHandler(['any.valid@mail.addresses'], Logger::WARNING)); $logger->alert('No more coffee in office');