Skip to content

program-the-brain-not-the-heartbeat/monolog-mailgun

 
 

Repository files navigation

Monolog Mailgun Handler

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads

A Monolog Handler for Mailgun

Installation

Install via composer - In the terminal:

composer require tylercd100/monolog-mailgun

Usage

use Tylercd100\Monolog\Handler\MailgunHandler;

$to      = "[email protected]";
$from    = "[email protected]";
$subject = "Test Email!";
$token   = "1onfifaln234nfkdo02";
$domain  = "test.com";

$handler = new MailgunHandler($to, $subject, $from, $token, $domain);
$logger  = new Monolog\Logger('mailgun.example');
$logger->pushHandler($handler);
$logger->addCritical("Foo Bar!");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%