PHP code example of snicco / better-wp-mail-bundle

1. Go to this page and download the library: Download snicco/better-wp-mail-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

snicco / better-wp-mail-bundle example snippets



// /path/to/configuration/bundles.php

use Snicco\Bundle\BetterWPMail\BetterWPMailBundle;

return [
    
    'bundles' => [
        Snicco\Component\Kernel\ValueObject\Environment::ALL => [
            BetterWPMailBundle::class
        ]   
    ]   
];


use Psr\EventDispatcher\EventDispatcherInterface;
use Snicco\Component\BetterWPHooks\EventMapping\EventMapper;
use Snicco\Component\BetterWPMail\Mailer;
use Snicco\Component\EventDispatcher\EventDispatcher;

/**
* @var Kernel $kernel
*/
$kernel->boot();

$mailer = $kernel->container()->make(Mailer::class);