PHP code example of kinglozzer / silverstripe-mailgunner
1. Go to this page and download the library: Download kinglozzer/silverstripe-mailgunner 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/ */
kinglozzer / silverstripe-mailgunner example snippets
$email = Email::create(
$from = '[email protected]',
$to = '[email protected], [email protected]',
$subject = 'My awesome email',
$content = 'Hello world!'
);
$email->addCustomHeader('X-Mailgunner-Batch-Message', true);
$email->send();
Email::set_mailer(new Kinglozzer\SilverStripeMailgunner\Mailer);
bash
$ composer