kisphp / symfony-mailer
Symfony mailer helper
0.2.1
2016-07-02 21:50 UTC
Requires
- php: >=5.4.0
- symfony/console: ~2.8
- symfony/swiftmailer-bundle: ~2.3
Requires (Dev)
- fabpot/php-cs-fixer: ~1.9
- phpunit/phpunit: ~4.8
- symfony/var-dumper: ~3.0
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