From fe8c772cc56cffb297f1ae68793089a67285984b Mon Sep 17 00:00:00 2001 From: Dan Chadwick Date: Sat, 17 Aug 2024 14:42:25 -0400 Subject: [PATCH] Adding smpt mail. --- composer.json | 2 + composer.lock | 243 ++++++++++++++++++++++++- config/default/core.extension.yml | 2 + config/default/mailsystem.settings.yml | 6 + config/default/smtp.settings.yml | 22 +++ config/default/system.site.yml | 2 +- 6 files changed, 274 insertions(+), 3 deletions(-) create mode 100644 config/default/mailsystem.settings.yml create mode 100644 config/default/smtp.settings.yml diff --git a/composer.json b/composer.json index e4e9d05..348a408 100644 --- a/composer.json +++ b/composer.json @@ -29,9 +29,11 @@ "drupal/google_tag": "^2.0", "drupal/jsonapi_permission_access": "1.0.1", "drupal/layout_builder_styles": "^2.0", + "drupal/mailsystem": "^4.5", "drupal/migrate_plus": "^6.0", "drupal/migrate_tools": "^6.0", "drupal/pathauto": "^1.12", + "drupal/smtp": "^1.4", "drupal/stage_file_proxy": "^2.1", "drupal/views_bulk_operations": "^4.2", "drupal/views_json_source": "^2.0", diff --git a/composer.lock b/composer.lock index 88c3abf..bbc5ca3 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": "54a0447fd219727c24bcd1da34fde1d6", + "content-hash": "4be6f7c8ed4600a2c414add687425d37", "packages": [ { "name": "asm89/stack-cors", @@ -2597,6 +2597,86 @@ "source": "https://git.drupalcode.org/project/layout_builder_styles" } }, + { + "name": "drupal/mailsystem", + "version": "4.5.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/mailsystem.git", + "reference": "8.x-4.5" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/mailsystem-8.x-4.5.zip", + "reference": "8.x-4.5", + "shasum": "e52a814a87b343ab69f8d8ef462a9873c1d01158" + }, + "require": { + "drupal/core": "^9 || ^10.1 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-4.5", + "datestamp": "1723379369", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "emartoni", + "homepage": "https://www.drupal.org/user/3225331" + }, + { + "name": "joseph.olstad", + "homepage": "https://www.drupal.org/user/1321830" + }, + { + "name": "Les Lim", + "homepage": "https://www.drupal.org/user/84263" + }, + { + "name": "Manuel Garcia", + "homepage": "https://www.drupal.org/user/213194" + }, + { + "name": "miro_dietiker", + "homepage": "https://www.drupal.org/user/227761" + }, + { + "name": "Nafes", + "homepage": "https://www.drupal.org/user/2489926" + }, + { + "name": "pillarsdotnet", + "homepage": "https://www.drupal.org/user/36148" + }, + { + "name": "renatog", + "homepage": "https://www.drupal.org/user/3326031" + }, + { + "name": "TR", + "homepage": "https://www.drupal.org/user/202830" + } + ], + "description": "Mail System", + "homepage": "https://www.drupal.org/project/mailsystem", + "support": { + "source": "https://git.drupalcode.org/project/mailsystem" + } + }, { "name": "drupal/migrate_plus", "version": "6.0.2", @@ -2801,6 +2881,82 @@ "documentation": "https://www.drupal.org/docs/8/modules/pathauto" } }, + { + "name": "drupal/smtp", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/smtp.git", + "reference": "8.x-1.4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/smtp-8.x-1.4.zip", + "reference": "8.x-1.4", + "shasum": "963b4670dc609f30a8c003d888d88893d0841b21" + }, + "require": { + "drupal/core": "^9.5 || ^10 || ^11", + "phpmailer/phpmailer": "^6.1.7" + }, + "suggest": { + "drupal/mailsystem": "Allows using SMTP alongside other mail modules." + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.4", + "datestamp": "1722032780", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + }, + "branch-alias": { + "dev-8.x-1.x": "1.x-dev" + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "japerry", + "homepage": "https://www.drupal.org/user/45640" + }, + { + "name": "joseph.olstad", + "homepage": "https://www.drupal.org/user/1321830" + }, + { + "name": "LukeLast", + "homepage": "https://www.drupal.org/user/30151" + }, + { + "name": "oadaeh", + "homepage": "https://www.drupal.org/user/4649" + }, + { + "name": "sadashiv", + "homepage": "https://www.drupal.org/user/1773304" + }, + { + "name": "wundo", + "homepage": "https://www.drupal.org/user/25523" + }, + { + "name": "yettyn", + "homepage": "https://www.drupal.org/user/93281" + } + ], + "description": "Allow for site emails to be sent through an SMTP server of your choice.", + "homepage": "https://www.drupal.org/project/smtp", + "support": { + "source": "https://git.drupalcode.org/project/smtp", + "issues": "https://www.drupal.org/project/issues/smtp" + } + }, { "name": "drupal/stage_file_proxy", "version": "2.1.4", @@ -4330,6 +4486,87 @@ }, "time": "2023-05-26T05:37:59+00:00" }, + { + "name": "phpmailer/phpmailer", + "version": "v6.9.1", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.7.2", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2023-11-25T22:23:28+00:00" + }, { "name": "phpowermove/docblock", "version": "v4.0", @@ -12947,7 +13184,9 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": { + "drupal/gin": 5 + }, "prefer-stable": true, "prefer-lowest": false, "platform": [], diff --git a/config/default/core.extension.yml b/config/default/core.extension.yml index 98afa0d..4ed194c 100644 --- a/config/default/core.extension.yml +++ b/config/default/core.extension.yml @@ -27,6 +27,7 @@ module: layout_builder: 0 layout_discovery: 0 link: 0 + mailsystem: 0 media: 0 media_library: 0 menu_link_content: 0 @@ -40,6 +41,7 @@ module: search: 0 serialization: 0 shortcut: 0 + smtp: 0 system: 0 taxonomy: 0 text: 0 diff --git a/config/default/mailsystem.settings.yml b/config/default/mailsystem.settings.yml new file mode 100644 index 0000000..1893bb1 --- /dev/null +++ b/config/default/mailsystem.settings.yml @@ -0,0 +1,6 @@ +_core: + default_config_hash: IhwTepsVwtbtbcT5GzQKhCXDCRvbk3MNkWqPiuiZ10s +theme: current +defaults: + sender: SMTPMailSystem + formatter: php_mail diff --git a/config/default/smtp.settings.yml b/config/default/smtp.settings.yml new file mode 100644 index 0000000..c3f7e67 --- /dev/null +++ b/config/default/smtp.settings.yml @@ -0,0 +1,22 @@ +_core: + default_config_hash: JqYNByWeXZGynyqoPRWQIjp3VcQhuoyq5WlM-7YzBvI +smtp_on: false +smtp_host: email-smtp.us-east-1.amazonaws.com +smtp_hostbackup: '' +smtp_port: '587' +smtp_protocol: tls +smtp_autotls: true +smtp_timeout: 30 +smtp_username: AKIA6G47FTHID5HY673W +smtp_password: BLWb6vgsyAQ5Z9HCHH/YpfM3Vw50XCACkudD0IaRTJZA +smtp_from: daniel.chadwick612@gmail.com +smtp_fromname: '' +smtp_client_hostname: '' +smtp_client_helo: '' +smtp_allowhtml: false +smtp_test_address: dan@danchadwickdesign.com +smtp_reroute_address: '' +smtp_debugging: false +smtp_debug_level: 1 +prev_mail_system: php_mail +smtp_keepalive: false diff --git a/config/default/system.site.yml b/config/default/system.site.yml index 2bf061d..d5bdc98 100644 --- a/config/default/system.site.yml +++ b/config/default/system.site.yml @@ -3,7 +3,7 @@ _core: langcode: en uuid: 4c1dadab-795e-4d97-bf8a-833f30080021 name: 'Dan Chadwick' -mail: admin@example.com +mail: dan@danchadwickdesign.com slogan: '' page: 403: ''