Browse Source

replaced mail_system by symfony mailer

bach 2 years ago
parent
commit
0fe25f0bb8
47 changed files with 719 additions and 97 deletions
  1. 3 0
      composer.json
  2. 251 1
      composer.lock
  3. 28 0
      config/devel/symfony_mailer.mailer_policy.update.status_notify.yml
  4. 3 5
      config/sync/core.extension.yml
  5. 10 0
      config/sync/filter.format.email_html.yml
  6. 2 0
      config/sync/language/fr/simplenews.settings.yml
  7. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.simplenews.subscribe.yml
  8. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.cancel_confirm.yml
  9. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.password_reset.yml
  10. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.register_admin_created.yml
  11. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.register_no_approval_required.yml
  12. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval.yml
  13. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml
  14. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.status_blocked.yml
  15. 3 0
      config/sync/language/fr/symfony_mailer.mailer_policy.user.status_canceled.yml
  16. 2 0
      config/sync/language/fr/views.view.simplenews_newsletters.yml
  17. 2 0
      config/sync/language/fr/webform.settings.yml
  18. 0 16
      config/sync/mailgun.settings.yml
  19. 0 27
      config/sync/mailsystem.settings.yml
  20. 0 14
      config/sync/mimemail.settings.yml
  21. 0 9
      config/sync/reroute_email.settings.yml
  22. 0 6
      config/sync/swiftmailer.message.yml
  23. 0 17
      config/sync/swiftmailer.transport.yml
  24. 14 0
      config/sync/symfony_mailer.mailer_policy._.yml
  25. 17 0
      config/sync/symfony_mailer.mailer_policy.contact.copy.yml
  26. 19 0
      config/sync/symfony_mailer.mailer_policy.contact.mail.yml
  27. 12 0
      config/sync/symfony_mailer.mailer_policy.contact.yml
  28. 17 0
      config/sync/symfony_mailer.mailer_policy.contact_form.copy.yml
  29. 17 0
      config/sync/symfony_mailer.mailer_policy.contact_form.mail.yml
  30. 12 0
      config/sync/symfony_mailer.mailer_policy.contact_form.yml
  31. 18 0
      config/sync/symfony_mailer.mailer_policy.simplenews.subscribe.yml
  32. 18 0
      config/sync/symfony_mailer.mailer_policy.simplenews.validate.yml
  33. 21 0
      config/sync/symfony_mailer.mailer_policy.simplenews_newsletter.yml
  34. 20 0
      config/sync/symfony_mailer.mailer_policy.user.cancel_confirm.yml
  35. 20 0
      config/sync/symfony_mailer.mailer_policy.user.password_reset.yml
  36. 25 0
      config/sync/symfony_mailer.mailer_policy.user.register_admin_created.yml
  37. 25 0
      config/sync/symfony_mailer.mailer_policy.user.register_no_approval_required.yml
  38. 20 0
      config/sync/symfony_mailer.mailer_policy.user.register_pending_approval.yml
  39. 23 0
      config/sync/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml
  40. 25 0
      config/sync/symfony_mailer.mailer_policy.user.status_activated.yml
  41. 20 0
      config/sync/symfony_mailer.mailer_policy.user.status_blocked.yml
  42. 20 0
      config/sync/symfony_mailer.mailer_policy.user.status_canceled.yml
  43. 12 0
      config/sync/symfony_mailer.mailer_transport.sendmail.yml
  44. 12 0
      config/sync/symfony_mailer.mailer_transport.smtp_mailjet.yml
  45. 3 0
      config/sync/symfony_mailer.settings.yml
  46. 0 1
      config/sync/system.mail.yml
  47. 1 1
      web/profiles/d8-starterkit-profile

+ 3 - 0
composer.json

@@ -77,6 +77,7 @@
         "drupal/commerce": "2.x-dev@dev",
         "drupal/commerce_cart_api": "^1.4",
         "drupal/commerce_cart_redirection": "^3.0",
+        "drupal/commerce_email": "1.x-dev@dev",
         "drupal/commerce_license": "^2.x-dev@dev",
         "drupal/commerce_migrate": "^3.1",
         "drupal/commerce_monetico": "^1.0",
@@ -156,6 +157,7 @@
         "drupal/strings_i18n_json_export": "^1.x-dev@dev",
         "drupal/structure_sync": "^2.0",
         "drupal/swiftmailer": "^2.x-dev@dev",
+        "drupal/symfony_mailer": "^1.0@alpha",
         "drupal/synonyms": "^2.0.0-beta2",
         "drupal/telephone_formatter": "^1.0@beta",
         "drupal/telephone_validation": "^2.1",
@@ -177,6 +179,7 @@
         "drush/drush": "^10.6",
         "kint-php/kint": "^3.3",
         "smalot/pdfparser": "*",
+        "symfony/mailjet-mailer": "^5.4",
         "vlucas/phpdotenv": "^2.4",
         "w8tcha/ckeditor_codemirror": "v1.17.8",
         "wa72/htmlpagedom": "1.3.*",

+ 251 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "51a1d0fa9d6908ab21626878c50da3c1",
+    "content-hash": "78f26bb64269c36ef8750454f9b8fbea",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -4302,6 +4302,65 @@
                 "source": "https://git.drupalcode.org/project/commerce"
             }
         },
+        {
+            "name": "drupal/commerce_email",
+            "version": "dev-1.x",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/commerce_email.git",
+                "reference": "cf7aff75be4a7cf8d6f548e365efd1090b9c2af3"
+            },
+            "require": {
+                "drupal/commerce": "^2.0",
+                "drupal/core": "^8.9 || ^9",
+                "drupal/token": "*"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-1.x": "1.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-1.0-beta1+8-dev",
+                    "datestamp": "1647058281",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Dev releases are not covered by Drupal security advisories."
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "jsacksick",
+                    "homepage": "https://www.drupal.org/user/972218"
+                },
+                {
+                    "name": "mglaman",
+                    "homepage": "https://www.drupal.org/user/2416470"
+                },
+                {
+                    "name": "paul.linney",
+                    "homepage": "https://www.drupal.org/user/928636"
+                },
+                {
+                    "name": "rinasek",
+                    "homepage": "https://www.drupal.org/user/1245514"
+                },
+                {
+                    "name": "rszrama",
+                    "homepage": "https://www.drupal.org/user/49344"
+                }
+            ],
+            "description": "Provides a UI for defining emails to send in response to various Drupal Commerce events.",
+            "homepage": "https://www.drupal.org/project/commerce_email",
+            "support": {
+                "source": "https://git.drupalcode.org/project/commerce_email"
+            }
+        },
         {
             "name": "drupal/commerce_license",
             "version": "dev-2.x",
@@ -13617,6 +13676,53 @@
                 "source": "https://git.drupalcode.org/project/swiftmailer"
             }
         },
+        {
+            "name": "drupal/symfony_mailer",
+            "version": "1.0.0-alpha9",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/symfony_mailer.git",
+                "reference": "1.0.0-alpha9"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/symfony_mailer-1.0.0-alpha9.zip",
+                "reference": "1.0.0-alpha9",
+                "shasum": "594840eb82b84f096971a0ea08e9817ecfd56184"
+            },
+            "require": {
+                "drupal/core": "^9.1",
+                "html2text/html2text": "^4.0.1",
+                "symfony/mailer": "^5.3.0",
+                "tijsverkoyen/css-to-inline-styles": "^2.2"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "1.0.0-alpha9",
+                    "datestamp": "1651306825",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Project has not opted into security advisory coverage!"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "AdamPS",
+                    "homepage": "https://www.drupal.org/user/2650563"
+                }
+            ],
+            "description": "Symfony Mailer",
+            "homepage": "https://www.drupal.org/project/symfony_mailer",
+            "support": {
+                "source": "https://git.drupalcode.org/project/symfony_mailer"
+            }
+        },
         {
             "name": "drupal/synonyms",
             "version": "2.1.0",
@@ -20644,6 +20750,148 @@
             ],
             "time": "2021-11-24T08:40:10+00:00"
         },
+        {
+            "name": "symfony/mailer",
+            "version": "v5.4.8",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/symfony/mailer.git",
+                "reference": "c6e7aa958cb2884d68562264f421ffea59cdad41"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/symfony/mailer/zipball/c6e7aa958cb2884d68562264f421ffea59cdad41",
+                "reference": "c6e7aa958cb2884d68562264f421ffea59cdad41",
+                "shasum": ""
+            },
+            "require": {
+                "egulias/email-validator": "^2.1.10|^3",
+                "php": ">=7.2.5",
+                "psr/event-dispatcher": "^1",
+                "psr/log": "^1|^2|^3",
+                "symfony/deprecation-contracts": "^2.1|^3",
+                "symfony/event-dispatcher": "^4.4|^5.0|^6.0",
+                "symfony/mime": "^5.2.6|^6.0",
+                "symfony/polyfill-php80": "^1.16",
+                "symfony/service-contracts": "^1.1|^2|^3"
+            },
+            "conflict": {
+                "symfony/http-kernel": "<4.4"
+            },
+            "require-dev": {
+                "symfony/http-client-contracts": "^1.1|^2|^3",
+                "symfony/messenger": "^4.4|^5.0|^6.0"
+            },
+            "type": "library",
+            "autoload": {
+                "psr-4": {
+                    "Symfony\\Component\\Mailer\\": ""
+                },
+                "exclude-from-classmap": [
+                    "/Tests/"
+                ]
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Fabien Potencier",
+                    "email": "fabien@symfony.com"
+                },
+                {
+                    "name": "Symfony Community",
+                    "homepage": "https://symfony.com/contributors"
+                }
+            ],
+            "description": "Helps sending emails",
+            "homepage": "https://symfony.com",
+            "support": {
+                "source": "https://github.com/symfony/mailer/tree/v5.4.8"
+            },
+            "funding": [
+                {
+                    "url": "https://symfony.com/sponsor",
+                    "type": "custom"
+                },
+                {
+                    "url": "https://github.com/fabpot",
+                    "type": "github"
+                },
+                {
+                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+                    "type": "tidelift"
+                }
+            ],
+            "time": "2022-04-27T17:10:22+00:00"
+        },
+        {
+            "name": "symfony/mailjet-mailer",
+            "version": "v5.4.8",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/symfony/mailjet-mailer.git",
+                "reference": "c186b0240d691236fe848c748566e987925d2e1c"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/symfony/mailjet-mailer/zipball/c186b0240d691236fe848c748566e987925d2e1c",
+                "reference": "c186b0240d691236fe848c748566e987925d2e1c",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=7.2.5",
+                "psr/event-dispatcher": "^1",
+                "symfony/mailer": "^4.4|^5.0|^6.0"
+            },
+            "require-dev": {
+                "symfony/http-client": "^4.4|^5.0|^6.0"
+            },
+            "type": "symfony-mailer-bridge",
+            "autoload": {
+                "psr-4": {
+                    "Symfony\\Component\\Mailer\\Bridge\\Mailjet\\": ""
+                },
+                "exclude-from-classmap": [
+                    "/Tests/"
+                ]
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Fabien Potencier",
+                    "email": "fabien@symfony.com"
+                },
+                {
+                    "name": "Symfony Community",
+                    "homepage": "https://symfony.com/contributors"
+                }
+            ],
+            "description": "Symfony Mailjet Mailer Bridge",
+            "homepage": "https://symfony.com",
+            "support": {
+                "source": "https://github.com/symfony/mailjet-mailer/tree/v5.4.8"
+            },
+            "funding": [
+                {
+                    "url": "https://symfony.com/sponsor",
+                    "type": "custom"
+                },
+                {
+                    "url": "https://github.com/fabpot",
+                    "type": "github"
+                },
+                {
+                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+                    "type": "tidelift"
+                }
+            ],
+            "time": "2022-04-12T16:02:29+00:00"
+        },
         {
             "name": "symfony/mime",
             "version": "v5.4.0",
@@ -25435,6 +25683,7 @@
         "drupal/auto_entitylabel": 20,
         "drupal/better_messages": 15,
         "drupal/commerce": 20,
+        "drupal/commerce_email": 20,
         "drupal/commerce_license": 20,
         "drupal/commerce_pricelist": 20,
         "drupal/commerce_recurring": 20,
@@ -25467,6 +25716,7 @@
         "drupal/simplenews": 20,
         "drupal/strings_i18n_json_export": 20,
         "drupal/swiftmailer": 20,
+        "drupal/symfony_mailer": 15,
         "drupal/telephone_formatter": 10,
         "drupal/translate_side_by_side": 20,
         "drupal/translation_views": 20,

+ 28 - 0
config/devel/symfony_mailer.mailer_policy.update.status_notify.yml

@@ -0,0 +1,28 @@
+uuid: 1773680e-8fb9-4a51-9e82-f412d4502bc9
+langcode: en
+status: true
+dependencies:
+  module:
+    - update
+_core:
+  default_config_hash: JOcNPf-ezI7vLCxZg4K9wpGqKYj6vMHlfsmhx_WGbTM
+id: update.status_notify
+configuration:
+  email_body:
+    content:
+      value: |-
+        <p>You need to take action to secure your server {{ site_name }}.</p>
+        <ul>
+        {% for message in messages %}
+          <li>{{ message }}</li>
+        {% endfor %}
+        </ul>
+
+        <p>See the <a href="{{ update_status }}">available updates</a> page for more information.
+        {% if update_manager %}
+          You can automatically install your updates using the <a href="{{ update_manager }}">Update manager</a>.
+        {% endif %}
+        You can <a href="{{ update_settings }}">change your settings</a> for what update notifications you receive.</p>
+      format: email_html
+  email_subject:
+    value: 'New release(s) available for {{ site_name }}'

+ 3 - 5
config/sync/core.extension.yml

@@ -34,6 +34,7 @@ module:
   commerce_cart: 0
   commerce_cart_api: 0
   commerce_checkout: 0
+  commerce_email: 0
   commerce_license: 0
   commerce_log: 0
   commerce_number_pattern: 0
@@ -127,12 +128,10 @@ module:
   locale: 0
   login_history: 0
   login_tracker: 0
-  mailgun: 0
   mailjet: 0
   mailjet_commerce: 0
   mailjet_event: 0
   maillog: 0
-  mailsystem: 0
   masquerade: 0
   materio_commerce: 0
   materio_decoupled: 0
@@ -149,7 +148,6 @@ module:
   menu_block: 0
   menu_ui: 0
   message: 0
-  mimemail: 0
   modules_weight: 0
   node: 0
   options: 0
@@ -171,7 +169,6 @@ module:
   recurring_period: 0
   redirect: 0
   redis: 0
-  reroute_email: 0
   responsive_image: 0
   rest: 0
   restui: 0
@@ -194,7 +191,8 @@ module:
   string_translation_ui: 0
   strings_i18n_json_export: 0
   structure_sync: 0
-  swiftmailer: 0
+  symfony_mailer: 0
+  symfony_mailer_bc: 0
   synonyms: 0
   synonyms_autocomplete: 0
   synonyms_list_field: 0

+ 10 - 0
config/sync/filter.format.email_html.yml

@@ -0,0 +1,10 @@
+uuid: 0f5ddc3c-16c2-457e-a7fc-916307e78b5e
+langcode: en
+status: true
+dependencies: {  }
+_core:
+  default_config_hash: u5MXordtBE3SIs1x4qEUEBUFctQ0jjSn2vbPtgxvXuM
+name: 'Email HTML'
+format: email_html
+weight: 0
+filters: {  }

+ 2 - 0
config/sync/language/fr/simplenews.settings.yml

@@ -0,0 +1,2 @@
+subscription:
+  confirm_combined_subject: 'Confirmation de [site:name]'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.simplenews.subscribe.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Confirmation de [site:name]'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.cancel_confirm.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Demande d''annulation du compte [user:display-name] sur [site:name]'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.password_reset.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Modification des informations de connexion pour [user:display-name] sur [site:name]'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.register_admin_created.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Un administrateur a créé un compte pour vous sur [site:name]'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.register_no_approval_required.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Détails du compte [user:display-name] sur [site:name]'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Détails du compte [user:display-name] sur [site:name] (en attente de validation d''un administrateur)'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Détails du compte [user:display-name] sur [site:name] (en attente de validation d''un administrateur)'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.status_blocked.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Détails du compte [user:display-name] sur [site:name] (bloqué)'

+ 3 - 0
config/sync/language/fr/symfony_mailer.mailer_policy.user.status_canceled.yml

@@ -0,0 +1,3 @@
+configuration:
+  email_subject:
+    value: 'Détails du compte [user:display-name] sur [site:name] (annulé)'

+ 2 - 0
config/sync/language/fr/views.view.simplenews_newsletters.yml

@@ -20,6 +20,8 @@ display:
         node_bulk_form:
           label: 'Formulaire des opérations en masse sur les nœuds'
           action_title: 'Pour la sélection'
+        title:
+          label: Ticket
         simplenews_issue:
           separator: ', '
         status:

+ 2 - 0
config/sync/language/fr/webform.settings.yml

@@ -8,6 +8,8 @@ settings:
   dialog_options:
     narrow:
       title: Étroit
+    normal:
+      title: Normal
     wide:
       title: Large
 element:

+ 0 - 16
config/sync/mailgun.settings.yml

@@ -1,16 +0,0 @@
-_core:
-  default_config_hash: bMOl3jD7ZuzZMuaUYzyqadr56G486ldo28NYIkK_54g
-api_endpoint: 'https://api.mailgun.net'
-api_key_storage: config
-api_key_key: ''
-api_key: ''
-working_domain: materio.com
-debug_mode: false
-test_mode: false
-tracking_opens: 'yes'
-tracking_clicks: 'yes'
-tracking_exception: 'user:password_reset'
-format_filter: plain_text
-use_queue: true
-use_theme: false
-tagging_mailkey: true

+ 0 - 27
config/sync/mailsystem.settings.yml

@@ -1,27 +0,0 @@
-_core:
-  default_config_hash: IhwTepsVwtbtbcT5GzQKhCXDCRvbk3MNkWqPiuiZ10s
-theme: materiotheme
-defaults:
-  sender: mailjet_mail
-  formatter: swiftmailer
-modules:
-  swiftmailer:
-    none:
-      sender: mailjet_mail
-      formatter: swiftmailer
-  simplenews:
-    none:
-      sender: mailjet_mail
-      formatter: swiftmailer
-  mailjet:
-    none:
-      sender: mailjet_mail
-      formatter: swiftmailer
-  commerce:
-    none:
-      sender: mailjet_mail
-      formatter: swiftmailer
-  commerce_license:
-    none:
-      sender: mailjet_mail
-      formatter: swiftmailer

+ 0 - 14
config/sync/mimemail.settings.yml

@@ -1,14 +0,0 @@
-_core:
-  default_config_hash: 7mRdLbI-Rda0ePrw4IkNSJd8m_lTx7nLZnVfbNbyfwA
-name: ''
-mail: ''
-simple_address: false
-sitestyle: true
-textonly: false
-linkonly: false
-format: full_html
-preserve_class: false
-advanced:
-  incoming: false
-  key: ''
-engine: mimemail

+ 0 - 9
config/sync/reroute_email.settings.yml

@@ -1,9 +0,0 @@
-_core:
-  default_config_hash: gbxsfZiC2MMjzyiqbCPrKXXxlhQDa0pMNs0FSt_33ds
-enable: false
-allowed: ''
-roles: {  }
-description: true
-message: true
-mailkeys: ''
-mailkeys_skip: ''

+ 0 - 6
config/sync/swiftmailer.message.yml

@@ -1,6 +0,0 @@
-_core:
-  default_config_hash: VMWxVURttskghCbo5AuwZeaD2NJquuMGrOMJqG1YZhE
-content_type: text/html
-text_format: plain_text
-generate_plain: true
-character_set: UTF-8

+ 0 - 17
config/sync/swiftmailer.transport.yml

@@ -1,17 +0,0 @@
-_core:
-  default_config_hash: RSNbRD3ekSaZoE19f3eHhm93gKOcD2PtmaAVmV3XMes
-transport: sendmail
-smtp_host: 127.0.0.1
-smtp_port: 25
-smtp_encryption: ''
-sendmail_path: /usr/sbin/sendmail
-sendmail_mode: bs
-smtp_credential_provider: swiftmailer
-smtp_credentials:
-  swiftmailer:
-    username: ''
-    password: ''
-  key:
-    username: ''
-    password: ''
-spool_directory: ''

+ 14 - 0
config/sync/symfony_mailer.mailer_policy._.yml

@@ -0,0 +1,14 @@
+uuid: 55bf7519-ea79-42da-a353-b6ba7a3e3c0c
+langcode: en
+status: true
+dependencies: {  }
+_core:
+  default_config_hash: YdbP1K1t12OGgnPz3AsvZ6xoXuFbWSuy3npzg1pVSJI
+id: _
+configuration:
+  mailer_default_headers: {  }
+  mailer_html_to_text: {  }
+  mailer_inline_css: {  }
+  email_theme:
+    theme: _active_fallback
+  mailer_url_to_absolute: {  }

+ 17 - 0
config/sync/symfony_mailer.mailer_policy.contact.copy.yml

@@ -0,0 +1,17 @@
+uuid: 134147cd-f707-4a44-b578-fe47c9fddc7e
+langcode: en
+status: true
+dependencies:
+  module:
+    - contact
+_core:
+  default_config_hash: dRrc9PkLOme-LkddT28g1s2j6A6r8qJLW6I1FA4HD9M
+id: contact.copy
+configuration:
+  email_body:
+    content:
+      value: |-
+        <p class="contact-email-intro">Here is a copy of the message you sent to {{ recipient_name }} at {{ site_name }}.</p>
+        <hr>
+        {{ body }}
+      format: email_html

+ 19 - 0
config/sync/symfony_mailer.mailer_policy.contact.mail.yml

@@ -0,0 +1,19 @@
+uuid: 4aa2ac66-aaba-414c-a0a3-bf12aa119aef
+langcode: en
+status: true
+dependencies:
+  module:
+    - contact
+_core:
+  default_config_hash: qM-nS_f8vJxvO0QPUg8SYmt3iTXAPcvj94xpXXBznQ4
+id: contact.mail
+configuration:
+  email_body:
+    content:
+      value: |-
+        <p class="contact-email-intro">Hello {{ recipient_name }},<br>
+        <a href="{{ sender_url }}">{{ sender_name }}</a> has sent you a message via your form at {{ site_name }}.
+        If you don't want to receive such emails, you can <a href="{{ recipient_edit_url }}">change your settings</a>.</p>
+        <hr>
+        {{ body }}
+      format: email_html

+ 12 - 0
config/sync/symfony_mailer.mailer_policy.contact.yml

@@ -0,0 +1,12 @@
+uuid: 5d8666b2-21ff-456a-9c5c-792c28e69173
+langcode: en
+status: true
+dependencies:
+  module:
+    - contact
+_core:
+  default_config_hash: hNnHk1jtvS_lezOW8CXkrFUEg3SlVaH8SEIilXxmC0Y
+id: contact
+configuration:
+  email_subject:
+    value: '[{{ site_name }}] {{ subject }}'

+ 17 - 0
config/sync/symfony_mailer.mailer_policy.contact_form.copy.yml

@@ -0,0 +1,17 @@
+uuid: a6c8aaf1-3f3b-481a-8276-ca3e9d204599
+langcode: en
+status: true
+dependencies:
+  module:
+    - contact
+_core:
+  default_config_hash: XNel772jUgO_1nTeBKv6KY1dOnm9ZTxw873dLdQn21I
+id: contact_form.copy
+configuration:
+  email_body:
+    content:
+      value: |-
+        <p class="contact-email-intro">Here is a copy of the message you sent using the contact form <a href="{{ form_url }}">{{ form }}</a>.</p>
+        <hr>
+        {{ body }}
+      format: email_html

+ 17 - 0
config/sync/symfony_mailer.mailer_policy.contact_form.mail.yml

@@ -0,0 +1,17 @@
+uuid: f0143eb1-9260-4046-8001-868f7ff18f99
+langcode: en
+status: true
+dependencies:
+  module:
+    - contact
+_core:
+  default_config_hash: 1TIKtMkjY26cVN1RPOzGE60sVx3nFvKHw-LR3I-STNw
+id: contact_form.mail
+configuration:
+  email_body:
+    content:
+      value: |-
+        <p class="contact-email-intro"><a href="{{ sender_url }}">{{ sender_name }}</a> sent a message using the contact form <a href="{{ form_url }}">{{ form }}</a>.</p>
+        <hr>
+        {{ body }}
+      format: email_html

+ 12 - 0
config/sync/symfony_mailer.mailer_policy.contact_form.yml

@@ -0,0 +1,12 @@
+uuid: 6016c007-4e4c-4fe5-9454-a4159f6fe678
+langcode: en
+status: true
+dependencies:
+  module:
+    - contact
+_core:
+  default_config_hash: Hmb6-2KQp-459chRvJx4haH9MprIHzG-rZheK5skgac
+id: contact_form
+configuration:
+  email_subject:
+    value: '[{{ form }}] {{ subject }}'

+ 18 - 0
config/sync/symfony_mailer.mailer_policy.simplenews.subscribe.yml

@@ -0,0 +1,18 @@
+uuid: c742d449-e6d4-4d13-ab62-6b7e813fe60e
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: eS_mn5V1pRFDUx66hVOesANK1KjPtyMQBr8v0JEBp-A
+id: simplenews.subscribe
+configuration:
+  email_subject:
+    value: 'Confirmation for [site:name]'
+  email_body:
+    content:
+      value: |-
+        <p>We have received a request to subscribe [simplenews-subscriber:mail] at <a href="[site:url]">[site:name]</a>.
+        Please use this link to <a href="[simplenews-subscriber:combined-url]">confirm your subscribtion</a>.</p>
+      format: email_html

+ 18 - 0
config/sync/symfony_mailer.mailer_policy.simplenews.validate.yml

@@ -0,0 +1,18 @@
+uuid: 89614f60-ecc8-4286-80b3-47b771f8423e
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: 5Oh2xuv7tqN5i5bnfKD00U_BBPkar6m2je0uO0SQNc4
+id: simplenews.validate
+configuration:
+  email_subject:
+    value: 'Manage your subscriptions at [site:name]'
+  email_body:
+    content:
+      value: |-
+        <p>We have received a request to manage your subscriptions for [simplenews-subscriber:mail] at <a href="[site:url]">[site:name]</a>.
+        Please use this link to <a href="[simplenews-subscriber:manage-url]">proceed</a>.</p>
+      format: email_html

+ 21 - 0
config/sync/symfony_mailer.mailer_policy.simplenews_newsletter.yml

@@ -0,0 +1,21 @@
+uuid: 958db776-6cf2-4d23-8cfc-a36db3ac9dc4
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: mN2tbwIo__h9pehTd-fc40iGUSvVCW_lgFaKHadVgxk
+id: simplenews_newsletter
+configuration:
+  email_from:
+    addresses:
+      -
+        value: news@materio.com
+        display: ''
+  email_body:
+    content:
+      value: "<div class=\"clearfix\">\r\n  {{ body }}\r\n</div>\r\n\r\n{% if not opt_out_hidden %}\r\n  <p class=\"simplenews-unsubscribe\"><a href=\"[simplenews-subscriber:unsubscribe-url]\">Unsubscribe from this newsletter</a></p>\r\n{% endif %}\r\n\r\n{% if test %}\r\n  <p class=\"simplenews-test-message\">This is a test version of the newsletter.</p>\r\n{% endif %}"
+      format: email_html
+  email_subject:
+    value: '[node:title]'

+ 20 - 0
config/sync/symfony_mailer.mailer_policy.user.cancel_confirm.yml

@@ -0,0 +1,20 @@
+uuid: e2c5e42f-dbb7-4526-9f30-fe14e9c6237e
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: 4wEqs5CkKtLUdPsuIchodbNwXFyP0Jxpv9a3v0YoxmE
+id: user.cancel_confirm
+configuration:
+  email_subject:
+    value: 'Account cancellation request for [user:display-name] at [site:name]'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>A request has been made to cancel your account at <a href="[site:url]">[site:name]</a>.
+        You may now use this link to <a href="[user:cancel-url]">cancel your account</a>.</p>
+        <p><b>Note</b>: The cancellation of your account is not reversible. This link expires in one day and nothing will happen if it is not used.</p>
+      format: email_html

+ 20 - 0
config/sync/symfony_mailer.mailer_policy.user.password_reset.yml

@@ -0,0 +1,20 @@
+uuid: c5135122-4990-4542-af33-4e0c425f5a67
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: dQw-zK_rH2Z6J-fK28ea5w0gq4Q05DCafWCz5Je36-M
+id: user.password_reset
+configuration:
+  email_subject:
+    value: 'Replacement login information for [user:display-name] at [site:name]'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>A request has been made to reset the password for your account at <a href="[site:url]">[site:name]</a>.
+        You may now use this link to <a href="[user:one-time-login-url]">log in</a>.
+        This link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.</p>
+      format: email_html

+ 25 - 0
config/sync/symfony_mailer.mailer_policy.user.register_admin_created.yml

@@ -0,0 +1,25 @@
+uuid: 2237634e-254d-4e78-8c58-a858136744b6
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: eC3j_yyQMsgaoE3EK4lyJ6qRwCOay2nQtK9n7mVnvYQ
+id: user.register_admin_created
+configuration:
+  email_subject:
+    value: 'An administrator created an account for you at [site:name]'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>A site administrator at <a href="[site:url]">[site:name]</a> has created an account for you.
+        You may now use this link to <a href="[user:one-time-login-url]">log in</a>. It can be used only once and will lead you to a page where you can set your password.</p>
+
+        <p>After setting your password, you will be able to <a href="[site:login-url]">log in</a> in the future using:</p>
+        <ul>
+          <li>username: [user:account-name]</li>
+          <li>password: Your password</li>
+        </ul>
+      format: email_html

+ 25 - 0
config/sync/symfony_mailer.mailer_policy.user.register_no_approval_required.yml

@@ -0,0 +1,25 @@
+uuid: e5b8ce63-a50a-4414-a8d9-1ea22bb17ba2
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: 773qpyG5A4UQzh_Mt5CaIUGJWpLZlXcDQMUVwjc86ek
+id: user.register_no_approval_required
+configuration:
+  email_subject:
+    value: 'Account details for [user:display-name] at [site:name]'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>Thank you for registering at <a href="[site:url]">[site:name]</a>.
+        You may now use this link to <a href="[user:one-time-login-url]">log in</a>. It can be used only once and will lead you to a page where you can set your password.</p>
+
+        <p>After setting your password, you will be able to <a href="[site:login-url]">log in</a> in the future using:</p>
+        <ul>
+          <li>username: [user:account-name]</li>
+          <li>password: Your password</li>
+        </ul>
+      format: email_html

+ 20 - 0
config/sync/symfony_mailer.mailer_policy.user.register_pending_approval.yml

@@ -0,0 +1,20 @@
+uuid: f80609b6-d01c-4983-8bc4-2eda4d53f3ac
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: gdjGWtW1jFD4Z2y7UovfbpF3m3ln7By0xqRc0_6U9Qc
+id: user.register_pending_approval
+configuration:
+  email_subject:
+    value: 'Account details for [user:display-name] at [site:name] (pending admin approval)'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>Thank you for registering at <a href="[site:url]">[site:name]</a>.
+        Your application for an account is currently pending approval.
+        Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.</p>
+      format: email_html

+ 23 - 0
config/sync/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml

@@ -0,0 +1,23 @@
+uuid: 574d291e-464d-48c5-9cd8-b704c89c6885
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: 6_PE3lxRmcr3l6u87ZQj7g42tE_3X1kul08lJ8eAmxA
+id: user.register_pending_approval_admin
+configuration:
+  email_subject:
+    value: 'Account details for [user:display-name] at [site:name] (pending admin approval)'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name] has applied for an account at <a href="[site:url]">[site:name]</a>.
+        You may now use this link to <a href="[user:edit-url]">approve the request</a>.</p>
+      format: email_html
+  email_to:
+    addresses:
+      -
+        value: '<site>'
+        display: ''

+ 25 - 0
config/sync/symfony_mailer.mailer_policy.user.status_activated.yml

@@ -0,0 +1,25 @@
+uuid: e818097d-dad1-4013-ab01-3e5c22f91893
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: LG57ffuuPiE4cmAz-PrFy0AZwPbgzyGw2Y0OnwVrOfc
+id: user.status_activated
+configuration:
+  email_subject:
+    value: 'Your account details for [user:display-name] at [site:name] ([site:url])'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>Your account at <a href="[site:url]">[site:name]</a> has been activated.
+        You may now use this link to <a href="[user:one-time-login-url]">log in</a>. It can be used only once and will lead you to a page where you can set your password.</p>
+
+        <p>After setting your password, you will be able to <a href="[site:login-url]">log in</a> in the future using:</p>
+        <ul>
+          <li>username: [user:account-name]</li>
+          <li>password: Your password</li>
+        </ul>
+      format: email_html

+ 20 - 0
config/sync/symfony_mailer.mailer_policy.user.status_blocked.yml

@@ -0,0 +1,20 @@
+uuid: 98513a44-3193-4d85-8b76-bfc8c7f04fb9
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: PeWhXf4ILMeyyCEQC9r17UfJteCfKaK8xY7EqoAt2MU
+id: user.status_blocked
+configuration:
+  email_subject:
+    value: 'Account details for [user:display-name] at [site:name] (blocked)'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>Your account on <a href="[site:url]">[site:name]</a> has been blocked.</p>
+      format: email_html
+  email_skip_sending:
+    message: 'Notification disabled in settings'

+ 20 - 0
config/sync/symfony_mailer.mailer_policy.user.status_canceled.yml

@@ -0,0 +1,20 @@
+uuid: 005d8097-eda3-4e6b-902f-0577cdc6a8b3
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+_core:
+  default_config_hash: UHTbwGbdSCyX2ahr4mXkeXx7pv_RPytuoDSLaPtk1is
+id: user.status_canceled
+configuration:
+  email_subject:
+    value: 'Account details for [user:display-name] at [site:name] (canceled)'
+  email_body:
+    content:
+      value: |-
+        <p>[user:display-name],</p>
+        <p>Your account on <a href="[site:url]">[site:name]</a> has been canceled.</p>
+      format: email_html
+  email_skip_sending:
+    message: 'Notification disabled in settings'

+ 12 - 0
config/sync/symfony_mailer.mailer_transport.sendmail.yml

@@ -0,0 +1,12 @@
+uuid: 33837c25-bf4c-4625-8398-4129b8bad533
+langcode: en
+status: true
+dependencies: {  }
+_core:
+  default_config_hash: JlhtZGzrKvb_1TFIVW-o2lEEoeutUxHkdpZ1WzIkJMY
+id: sendmail
+label: Sendmail
+plugin: sendmail
+configuration:
+  query:
+    command: ''

+ 12 - 0
config/sync/symfony_mailer.mailer_transport.smtp_mailjet.yml

@@ -0,0 +1,12 @@
+uuid: 528a2253-e43a-438a-b6db-0dd8b309effd
+langcode: fr
+status: true
+dependencies: {  }
+id: smtp_mailjet
+label: 'SMTP mailjet'
+plugin: smtp
+configuration:
+  user: cec52b4eb2d759f5372dfd194585c388
+  pass: 07aaab76d591f8161158d0df79d280eb
+  host: in-v3.mailjet.com
+  port: 587

+ 3 - 0
config/sync/symfony_mailer.settings.yml

@@ -0,0 +1,3 @@
+_core:
+  default_config_hash: L0CsIVzS4Y9GjtnVFyTEoSC8GqjF3ULre41Nx6ZZJz4
+default_transport: smtp_mailjet

+ 0 - 1
config/sync/system.mail.yml

@@ -3,4 +3,3 @@ _core:
 langcode: fr
 interface:
   default: mailjet_mail
-  mailgun: mailgun

+ 1 - 1
web/profiles/d8-starterkit-profile

@@ -1 +1 @@
-Subproject commit 7bf07a20b7ac7383f72c9df88449ad299924ec99
+Subproject commit 5ef9a17d3bd90f02943d1e3b90cd67fdf090009f