PHP code example of maba / mail-renderer-bundle
1. Go to this page and download the library: Download maba/mail-renderer-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/ */
maba / mail-renderer-bundle example snippets
new Maba\Bundle\MailRendererBundle\MabaMailRendererBundle(),
/** @var FormattedMessageMailer $mailer */
$mailer = $this->get('maba_mail_renderer.formatted_message_mailer');
$mailer->sendMessage('[email protected]', 'ApplicationBundle:Email:welcome.html.twig', array(
'username' => 'customer123',
'activationLink' => 'http://www.example.com/activate/ABC123',
));