lloricode/mailspfchecker-health-check

This is my package mailspfchecker-health-check


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package contains a Laravel Health check if your application can send e-mail in name of a given address. Under the hood, it uses Mail spf checker.

Installation

You can install the package via composer:

composer require lloricode/mailspfchecker-health-check

Usage

// typically, in a service provider

use Spatie\Health\Facades\Health;
use Lloricode\MailspfcheckerHealthCheck\MailspfcheckerCheck;

Health::checks([
    MailspfcheckerCheck::new(),
    
    MailspfcheckerCheck::new()
        ->setEmailOrDomain('hello@example.com'),
        
    MailspfcheckerCheck::new()
        ->setEmailOrDomain('hello@example.com')
        ->setUserServer('smtp.mandrill.com'),
]);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.