PHP code example of butterfly / adapter-swift-mailer
1. Go to this page and download the library: Download butterfly/adapter-swift-mailer 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/ */
butterfly / adapter-swift-mailer example snippets
use Butterfly\Adapter\SwiftMailer\Mailer;
use Butterfly\Component\DI\Container;
use Butterfly\Component\Packages\PackagesConfig;
$baseDir = realpath(__DIR__);
ift_mailer');
$mailer->sendPrepared('hello.world', array(
'name' => 'World',
));
$mailer->flush();
Base template
-------------
\#base.xml.twig
<?xml version="1.0" encoding="utf-8"