From 77c295869cf878ed21b135d78d3dd6878591e8c7 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 3 May 2022 16:37:40 +0200 Subject: [PATCH] simplenews mailjet subscription --- composer.json | 1 + composer.lock | 67 ++++++++++++++++++- config/sync/core.extension.yml | 1 + config/sync/mailsystem.settings.yml | 2 +- ...s_mailjet_subsciption.simplenews_daily.yml | 25 +++++++ 5 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 config/sync/simplenews_mailjet_subscriptions.simplenews_mailjet_subsciption.simplenews_daily.yml diff --git a/composer.json b/composer.json index ce4af22..13b18eb 100644 --- a/composer.json +++ b/composer.json @@ -150,6 +150,7 @@ "drupal/select_translation": "^1.x-dev", "drupal/session_limit": "^2.0@beta", "drupal/simplenews": "3.x-dev@dev", + "drupal/simplenews_mailjet_subscriptions": "^1.2", "drupal/social_media_links": "^2.8", "drupal/string_translation_ui": "^1.2", "drupal/strings_i18n_json_export": "^1.x-dev@dev", diff --git a/composer.lock b/composer.lock index 8f18aeb..ae419ee 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": "2a433a8719421af46eafa80282f838fd", + "content-hash": "51a1d0fa9d6908ab21626878c50da3c1", "packages": [ { "name": "alchemy/zippy", @@ -12928,6 +12928,71 @@ "source": "https://git.drupalcode.org/project/simplenews" } }, + { + "name": "drupal/simplenews_mailjet_subscriptions", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/simplenews_mailjet_subscriptions.git", + "reference": "8.x-1.2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/simplenews_mailjet_subscriptions-8.x-1.2.zip", + "reference": "8.x-1.2", + "shasum": "ba295d052e87253973d962acd7915e0f4aef80d8" + }, + "require": { + "drupal/core": "^8 || ^9", + "drupal/simplenews": "*" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.2", + "datestamp": "1614341278", + "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": "Miguelpamferreira", + "homepage": "https://www.drupal.org/user/3548054" + }, + { + "name": "Nelson Alves", + "homepage": "https://www.drupal.org/user/3557178" + }, + { + "name": "dgaspara", + "homepage": "https://www.drupal.org/user/3557179" + }, + { + "name": "joaomarques736", + "homepage": "https://www.drupal.org/user/3557181" + }, + { + "name": "ricardotenreiro", + "homepage": "https://www.drupal.org/user/213132" + }, + { + "name": "tmiguelv", + "homepage": "https://www.drupal.org/user/3612421" + } + ], + "description": "Allows you to manage the subscriptions in a mailjet account .", + "homepage": "https://www.drupal.org/project/simplenews_mailjet_subscriptions", + "support": { + "source": "https://git.drupalcode.org/project/simplenews_mailjet_subscriptions" + } + }, { "name": "drupal/smart_trim", "version": "1.3.0", diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index dfd8d70..7960d1e 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -184,6 +184,7 @@ module: serialization: 0 session_limit: 0 simplenews: 0 + simplenews_mailjet_subscriptions: 0 smart_trim: 0 smtp: 0 social_media_links: 0 diff --git a/config/sync/mailsystem.settings.yml b/config/sync/mailsystem.settings.yml index 251594c..cf1b02c 100644 --- a/config/sync/mailsystem.settings.yml +++ b/config/sync/mailsystem.settings.yml @@ -11,7 +11,7 @@ modules: formatter: swiftmailer simplenews: none: - sender: mailgun_mail + sender: mailjet_mail formatter: swiftmailer mailjet: none: diff --git a/config/sync/simplenews_mailjet_subscriptions.simplenews_mailjet_subsciption.simplenews_daily.yml b/config/sync/simplenews_mailjet_subscriptions.simplenews_mailjet_subsciption.simplenews_daily.yml new file mode 100644 index 0000000..26bc986 --- /dev/null +++ b/config/sync/simplenews_mailjet_subscriptions.simplenews_mailjet_subsciption.simplenews_daily.yml @@ -0,0 +1,25 @@ +uuid: 2ced9da8-6f30-4713-a310-c439a3d7473b +langcode: fr +status: true +dependencies: { } +id: simplenews_daily +title: 'Drupal simplenews mailjet subscription' +api_key: cec52b4eb2d759f5372dfd194585c388 +secret_key: 07aaab76d591f8161158d0df79d280eb +mapping_table: + - + simplenews_news: ze_daily_materio_ + contact_property: 'simplenews daily' + newsletter_property_name: Daily + - + simplenews_news: materio_newsletter + contact_property: 'simplenews newsletter' + newsletter_property_name: Newsletter + - + simplenews_news: test + contact_property: 'simplenews test' + newsletter_property_name: Test + - + simplenews_news: companies + contact_property: 'simplenews Compagnie' + newsletter_property_name: Compagnie