Skip to content
Skeleton of html mailer (example for Symfony 2.6/Swift mailer).
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
src
web
.gitignore
LICENSE
README.md
composer.json
composer.lock

README.md

Mailer

Skeleton of html mailer (example for Symfony 2.6/Swift mailer).

This code is just an example of easy html mailing in Symfony 2 using Swift mailer.

Class MailGenerator generate mails using twig templates.

Namespace: Acme\MailBundle\MailGenerator

Located at MailBundle/MailGenerator/MailGenerator.php

###Methods summary

public __construct( Twig_Environment $twig )

Constructor

Parameters

    Twig_Environment $twig;

public getMessage( string $name, array $parameters = array() )

Parameters

string $name;

$name must correspond to twig file

 array $parameters;

$parameters to substitute to the rendering file

Returns

Swift_Message()

###Properties summary

protected Twig_Environment $twig_env

<table class="summary table table-bordered table-striped" id="properties">
You can’t perform that action at this time.