kisphp/symfony-mailer

Symfony mailer helper

0.2.1 2016-07-02 21:50 UTC

This package is auto-updated.

Last update: 2024-11-08 08:16:45 UTC


README

Info

Email templates based on Foundation Email framework

Configuration

Add to parameters.yml file:


parameters:
    ...
    email_bundle:
        homepage_root_name: homepage # replace with your homepage route name
        website_name: Website name # replace with your website's name
        admin_email: admin@example.com # where to send contact message and alerts
        admin_name: Admin Name
        from_email: no-reply@example.com
        from_name: From my website name

Register new bundle in your application

<?php

...

class AppKernel extends Kernel
{
    /**
     * @return array
     */
    public function registerBundles()
    {
        $bundles = array(
            ...
            new \Kisphp\EmailBundle\KisphpEmailBundle(),
        );

        ...

        return $bundles;
    }
    
    ...
}

Add translations in app/Resources/translations/messages.{lang}.yml