diff --git a/composer.json b/composer.json index ffb3e5d..6c55ce0 100644 --- a/composer.json +++ b/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.*", diff --git a/composer.lock b/composer.lock index ae419ee..1961be2 100644 --- a/composer.lock +++ b/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, diff --git a/config/devel/symfony_mailer.mailer_policy.update.status_notify.yml b/config/devel/symfony_mailer.mailer_policy.update.status_notify.yml new file mode 100644 index 0000000..283ba20 --- /dev/null +++ b/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: |- +

You need to take action to secure your server {{ site_name }}.

+ + +

See the available updates page for more information. + {% if update_manager %} + You can automatically install your updates using the Update manager. + {% endif %} + You can change your settings for what update notifications you receive.

+ format: email_html + email_subject: + value: 'New release(s) available for {{ site_name }}' diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index b634c18..1bd20f1 100644 --- a/config/sync/core.extension.yml +++ b/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 diff --git a/config/sync/filter.format.email_html.yml b/config/sync/filter.format.email_html.yml new file mode 100644 index 0000000..03d204d --- /dev/null +++ b/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: { } diff --git a/config/sync/language/fr/simplenews.settings.yml b/config/sync/language/fr/simplenews.settings.yml new file mode 100644 index 0000000..20852e9 --- /dev/null +++ b/config/sync/language/fr/simplenews.settings.yml @@ -0,0 +1,2 @@ +subscription: + confirm_combined_subject: 'Confirmation de [site:name]' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.simplenews.subscribe.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.simplenews.subscribe.yml new file mode 100644 index 0000000..cb5265a --- /dev/null +++ b/config/sync/language/fr/symfony_mailer.mailer_policy.simplenews.subscribe.yml @@ -0,0 +1,3 @@ +configuration: + email_subject: + value: 'Confirmation de [site:name]' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.cancel_confirm.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.cancel_confirm.yml new file mode 100644 index 0000000..7204eb4 --- /dev/null +++ b/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]' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.password_reset.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.password_reset.yml new file mode 100644 index 0000000..e141409 --- /dev/null +++ b/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]' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_admin_created.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_admin_created.yml new file mode 100644 index 0000000..a29e017 --- /dev/null +++ b/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]' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_no_approval_required.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_no_approval_required.yml new file mode 100644 index 0000000..aa1ac89 --- /dev/null +++ b/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]' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval.yml new file mode 100644 index 0000000..38a12ad --- /dev/null +++ b/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)' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml new file mode 100644 index 0000000..38a12ad --- /dev/null +++ b/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)' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.status_blocked.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.status_blocked.yml new file mode 100644 index 0000000..55f6a3b --- /dev/null +++ b/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é)' diff --git a/config/sync/language/fr/symfony_mailer.mailer_policy.user.status_canceled.yml b/config/sync/language/fr/symfony_mailer.mailer_policy.user.status_canceled.yml new file mode 100644 index 0000000..a501f66 --- /dev/null +++ b/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é)' diff --git a/config/sync/language/fr/views.view.simplenews_newsletters.yml b/config/sync/language/fr/views.view.simplenews_newsletters.yml index a1798db..00e9b9a 100644 --- a/config/sync/language/fr/views.view.simplenews_newsletters.yml +++ b/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: diff --git a/config/sync/language/fr/webform.settings.yml b/config/sync/language/fr/webform.settings.yml index 4c96e79..65abb53 100644 --- a/config/sync/language/fr/webform.settings.yml +++ b/config/sync/language/fr/webform.settings.yml @@ -8,6 +8,8 @@ settings: dialog_options: narrow: title: Étroit + normal: + title: Normal wide: title: Large element: diff --git a/config/sync/mailgun.settings.yml b/config/sync/mailgun.settings.yml deleted file mode 100644 index 1955d82..0000000 --- a/config/sync/mailgun.settings.yml +++ /dev/null @@ -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 diff --git a/config/sync/mailsystem.settings.yml b/config/sync/mailsystem.settings.yml deleted file mode 100644 index ed7c1f0..0000000 --- a/config/sync/mailsystem.settings.yml +++ /dev/null @@ -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 diff --git a/config/sync/mimemail.settings.yml b/config/sync/mimemail.settings.yml deleted file mode 100644 index 8f22dae..0000000 --- a/config/sync/mimemail.settings.yml +++ /dev/null @@ -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 diff --git a/config/sync/reroute_email.settings.yml b/config/sync/reroute_email.settings.yml deleted file mode 100644 index 60999ca..0000000 --- a/config/sync/reroute_email.settings.yml +++ /dev/null @@ -1,9 +0,0 @@ -_core: - default_config_hash: gbxsfZiC2MMjzyiqbCPrKXXxlhQDa0pMNs0FSt_33ds -enable: false -allowed: '' -roles: { } -description: true -message: true -mailkeys: '' -mailkeys_skip: '' diff --git a/config/sync/swiftmailer.message.yml b/config/sync/swiftmailer.message.yml deleted file mode 100644 index 28d6de9..0000000 --- a/config/sync/swiftmailer.message.yml +++ /dev/null @@ -1,6 +0,0 @@ -_core: - default_config_hash: VMWxVURttskghCbo5AuwZeaD2NJquuMGrOMJqG1YZhE -content_type: text/html -text_format: plain_text -generate_plain: true -character_set: UTF-8 diff --git a/config/sync/swiftmailer.transport.yml b/config/sync/swiftmailer.transport.yml deleted file mode 100644 index 752d4c7..0000000 --- a/config/sync/swiftmailer.transport.yml +++ /dev/null @@ -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: '' diff --git a/config/sync/symfony_mailer.mailer_policy._.yml b/config/sync/symfony_mailer.mailer_policy._.yml new file mode 100644 index 0000000..cedbe66 --- /dev/null +++ b/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: { } diff --git a/config/sync/symfony_mailer.mailer_policy.contact.copy.yml b/config/sync/symfony_mailer.mailer_policy.contact.copy.yml new file mode 100644 index 0000000..8188b8f --- /dev/null +++ b/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: |- +

Here is a copy of the message you sent to {{ recipient_name }} at {{ site_name }}.

+
+ {{ body }} + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.contact.mail.yml b/config/sync/symfony_mailer.mailer_policy.contact.mail.yml new file mode 100644 index 0000000..1da4061 --- /dev/null +++ b/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: |- +

Hello {{ recipient_name }},
+ {{ sender_name }} has sent you a message via your form at {{ site_name }}. + If you don't want to receive such emails, you can change your settings.

+
+ {{ body }} + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.contact.yml b/config/sync/symfony_mailer.mailer_policy.contact.yml new file mode 100644 index 0000000..86404ff --- /dev/null +++ b/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 }}' diff --git a/config/sync/symfony_mailer.mailer_policy.contact_form.copy.yml b/config/sync/symfony_mailer.mailer_policy.contact_form.copy.yml new file mode 100644 index 0000000..f06b54a --- /dev/null +++ b/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: |- +

Here is a copy of the message you sent using the contact form {{ form }}.

+
+ {{ body }} + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.contact_form.mail.yml b/config/sync/symfony_mailer.mailer_policy.contact_form.mail.yml new file mode 100644 index 0000000..a1f70dd --- /dev/null +++ b/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: |- +

{{ sender_name }} sent a message using the contact form {{ form }}.

+
+ {{ body }} + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.contact_form.yml b/config/sync/symfony_mailer.mailer_policy.contact_form.yml new file mode 100644 index 0000000..8de5b28 --- /dev/null +++ b/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 }}' diff --git a/config/sync/symfony_mailer.mailer_policy.simplenews.subscribe.yml b/config/sync/symfony_mailer.mailer_policy.simplenews.subscribe.yml new file mode 100644 index 0000000..8825600 --- /dev/null +++ b/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: |- +

We have received a request to subscribe [simplenews-subscriber:mail] at [site:name]. + Please use this link to confirm your subscribtion.

+ format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.simplenews.validate.yml b/config/sync/symfony_mailer.mailer_policy.simplenews.validate.yml new file mode 100644 index 0000000..3d638d3 --- /dev/null +++ b/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: |- +

We have received a request to manage your subscriptions for [simplenews-subscriber:mail] at [site:name]. + Please use this link to proceed.

+ format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.simplenews_newsletter.yml b/config/sync/symfony_mailer.mailer_policy.simplenews_newsletter.yml new file mode 100644 index 0000000..d7d5f6a --- /dev/null +++ b/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: "
\r\n {{ body }}\r\n
\r\n\r\n{% if not opt_out_hidden %}\r\n

Unsubscribe from this newsletter

\r\n{% endif %}\r\n\r\n{% if test %}\r\n

This is a test version of the newsletter.

\r\n{% endif %}" + format: email_html + email_subject: + value: '[node:title]' diff --git a/config/sync/symfony_mailer.mailer_policy.user.cancel_confirm.yml b/config/sync/symfony_mailer.mailer_policy.user.cancel_confirm.yml new file mode 100644 index 0000000..4c47238 --- /dev/null +++ b/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: |- +

[user:display-name],

+

A request has been made to cancel your account at [site:name]. + You may now use this link to cancel your account.

+

Note: The cancellation of your account is not reversible. This link expires in one day and nothing will happen if it is not used.

+ format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.user.password_reset.yml b/config/sync/symfony_mailer.mailer_policy.user.password_reset.yml new file mode 100644 index 0000000..d6bc13d --- /dev/null +++ b/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: |- +

[user:display-name],

+

A request has been made to reset the password for your account at [site:name]. + You may now use this link to log in. + 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.

+ format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.user.register_admin_created.yml b/config/sync/symfony_mailer.mailer_policy.user.register_admin_created.yml new file mode 100644 index 0000000..b2596a6 --- /dev/null +++ b/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: |- +

[user:display-name],

+

A site administrator at [site:name] has created an account for you. + You may now use this link to log in. It can be used only once and will lead you to a page where you can set your password.

+ +

After setting your password, you will be able to log in in the future using:

+ + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.user.register_no_approval_required.yml b/config/sync/symfony_mailer.mailer_policy.user.register_no_approval_required.yml new file mode 100644 index 0000000..e8a3cda --- /dev/null +++ b/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: |- +

[user:display-name],

+

Thank you for registering at [site:name]. + You may now use this link to log in. It can be used only once and will lead you to a page where you can set your password.

+ +

After setting your password, you will be able to log in in the future using:

+ + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.user.register_pending_approval.yml b/config/sync/symfony_mailer.mailer_policy.user.register_pending_approval.yml new file mode 100644 index 0000000..3d7b242 --- /dev/null +++ b/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: |- +

[user:display-name],

+

Thank you for registering at [site:name]. + 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.

+ format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml b/config/sync/symfony_mailer.mailer_policy.user.register_pending_approval_admin.yml new file mode 100644 index 0000000..9fadc91 --- /dev/null +++ b/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: |- +

[user:display-name] has applied for an account at [site:name]. + You may now use this link to approve the request.

+ format: email_html + email_to: + addresses: + - + value: '' + display: '' diff --git a/config/sync/symfony_mailer.mailer_policy.user.status_activated.yml b/config/sync/symfony_mailer.mailer_policy.user.status_activated.yml new file mode 100644 index 0000000..781c38d --- /dev/null +++ b/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: |- +

[user:display-name],

+

Your account at [site:name] has been activated. + You may now use this link to log in. It can be used only once and will lead you to a page where you can set your password.

+ +

After setting your password, you will be able to log in in the future using:

+ + format: email_html diff --git a/config/sync/symfony_mailer.mailer_policy.user.status_blocked.yml b/config/sync/symfony_mailer.mailer_policy.user.status_blocked.yml new file mode 100644 index 0000000..ab768bb --- /dev/null +++ b/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: |- +

[user:display-name],

+

Your account on [site:name] has been blocked.

+ format: email_html + email_skip_sending: + message: 'Notification disabled in settings' diff --git a/config/sync/symfony_mailer.mailer_policy.user.status_canceled.yml b/config/sync/symfony_mailer.mailer_policy.user.status_canceled.yml new file mode 100644 index 0000000..d5ebc7e --- /dev/null +++ b/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: |- +

[user:display-name],

+

Your account on [site:name] has been canceled.

+ format: email_html + email_skip_sending: + message: 'Notification disabled in settings' diff --git a/config/sync/symfony_mailer.mailer_transport.sendmail.yml b/config/sync/symfony_mailer.mailer_transport.sendmail.yml new file mode 100644 index 0000000..0d9091a --- /dev/null +++ b/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: '' diff --git a/config/sync/symfony_mailer.mailer_transport.smtp_mailjet.yml b/config/sync/symfony_mailer.mailer_transport.smtp_mailjet.yml new file mode 100644 index 0000000..b7178a5 --- /dev/null +++ b/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 diff --git a/config/sync/symfony_mailer.settings.yml b/config/sync/symfony_mailer.settings.yml new file mode 100644 index 0000000..8cb0a85 --- /dev/null +++ b/config/sync/symfony_mailer.settings.yml @@ -0,0 +1,3 @@ +_core: + default_config_hash: L0CsIVzS4Y9GjtnVFyTEoSC8GqjF3ULre41Nx6ZZJz4 +default_transport: smtp_mailjet diff --git a/config/sync/system.mail.yml b/config/sync/system.mail.yml index 711b81c..e5c944e 100644 --- a/config/sync/system.mail.yml +++ b/config/sync/system.mail.yml @@ -3,4 +3,3 @@ _core: langcode: fr interface: default: mailjet_mail - mailgun: mailgun diff --git a/web/profiles/d8-starterkit-profile b/web/profiles/d8-starterkit-profile index 7bf07a2..5ef9a17 160000 --- a/web/profiles/d8-starterkit-profile +++ b/web/profiles/d8-starterkit-profile @@ -1 +1 @@ -Subproject commit 7bf07a20b7ac7383f72c9df88449ad299924ec99 +Subproject commit 5ef9a17d3bd90f02943d1e3b90cd67fdf090009f