replaced mailer library, added email templates (#1462)

This commit is contained in:
Kevin Papst
2020-02-12 16:05:13 +01:00
committed by GitHub
parent 1b4f4bba22
commit 057c824e9f
30 changed files with 2738 additions and 340 deletions

View File

@@ -0,0 +1,3 @@
framework:
mailer:
dsn: 'null://null'

View File

@@ -1,4 +0,0 @@
# See https://symfony.com/doc/current/email/dev_environment.html
swiftmailer:
# send all emails to a specific address
# delivery_addresses: ['me@example.com']

View File

@@ -8,18 +8,8 @@ fos_user:
registration:
confirmation:
enabled: false
template: '@FOSUser/Registration/email.txt.twig'
resetting:
retry_ttl: 7200
token_ttl: 86400
email:
template: '@FOSUser/Resetting/email.txt.twig'
service:
mailer: fos_user.mailer.twig_swift
# group:
# group_class: ~ # Required when using groups
# group_manager: fos_user.group_manager.default
# form:
# type: FOS\UserBundle\Form\Type\GroupFormType # or 'fos_user_group' on Symfony < 2.8
# name: fos_user_group_form
# validation_groups: [Registration, Default]
mailer: App\Mail\UserMails

View File

@@ -0,0 +1,3 @@
framework:
mailer:
dsn: '%env(MAILER_URL)%'

View File

@@ -1,3 +0,0 @@
swiftmailer:
url: '%env(MAILER_URL)%'
spool: { type: 'memory' }

View File

@@ -0,0 +1,3 @@
framework:
mailer:
dsn: 'null://null'

View File

@@ -1,2 +0,0 @@
swiftmailer:
disable_delivery: true

View File

@@ -4,4 +4,7 @@ twig:
strict_variables: '%kernel.debug%'
form_themes:
- 'form/kimai-theme.html.twig'
exception_controller: null
exception_controller: null
paths:
# used in templates/emails/layout.html.twig
'%kernel.project_dir%/assets/css': css