Skip to content
This repository was archived by the owner on Jul 8, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

DDI-development/DDISymfonyHtmlMailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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">

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published