diff --git a/composer.json b/composer.json index 41342ac..5735882 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,6 @@ } ], "require": { - "voronkovich/phpmailer-dsn": "^0.0.1" + "phpmailer/phpmailer": "^6.8.0" } } diff --git a/composer.lock b/composer.lock index 2cdc93f..1da3864 100644 --- a/composer.lock +++ b/composer.lock @@ -4,53 +4,87 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "59f4f37f3dcde9b28d498f44030529f5", + "content-hash": "c72e2501e58bd7abfa0009a11beb44c4", "packages": [ { - "name": "voronkovich/phpmailer-dsn", - "version": "v0.0.1", + "name": "phpmailer/phpmailer", + "version": "v6.8.0", "source": { "type": "git", - "url": "https://github.com/voronkovich/phpmailer-dsn.git", - "reference": "481897ce751e8a776acf8c1b6acf59d8bf775569" + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "df16b615e371d81fb79e506277faea67a1be18f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voronkovich/phpmailer-dsn/zipball/481897ce751e8a776acf8c1b6acf59d8bf775569", - "reference": "481897ce751e8a776acf8c1b6acf59d8bf775569", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/df16b615e371d81fb79e506277faea67a1be18f1", + "reference": "df16b615e371d81fb79e506277faea67a1be18f1", "shasum": "" }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, "require-dev": { - "phpmailer/phpmailer": "^6.7" + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", + "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.1", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "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": { - "Voronkovich\\PHPMailerDSN\\": "src/" + "PHPMailer\\PHPMailer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "LGPL-2.1-only" ], "authors": [ { - "name": "Oleg Voronkovich", - "email": "oleg-voronkovich@yandex.ru" + "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": "Library for configuring PHPMailer with DSN string", + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { - "issues": "https://github.com/voronkovich/phpmailer-dsn/issues", - "source": "https://github.com/voronkovich/phpmailer-dsn/tree/v0.0.1" + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.8.0" }, "funding": [ { - "url": "https://ko-fi.com/voronkovich", - "type": "ko_fi" + "url": "https://github.com/Synchro", + "type": "github" } ], - "time": "2023-02-27T19:55:02+00:00" + "time": "2023-03-06T14:43:22+00:00" } ], "packages-dev": [], diff --git a/mailerdsn.php b/mailerdsn.php index 63a7725..f3020bd 100644 --- a/mailerdsn.php +++ b/mailerdsn.php @@ -4,7 +4,7 @@ * Plugin Name: Mailer DSN * Plugin URI: https://github.com/voronkovich/wordpress-mailer-dsn * Description: Configure wp_mail() via MAILER_DSN environment variable - * Version: 0.0.5 + * Version: 0.0.6 * License: MIT * License URI: https://github.com/voronkovich/wordpress-mailer-dsn/blob/main/LICENSE * Author: Oleg Voronkovich @@ -13,7 +13,7 @@ defined('ABSPATH') || exit; -use Voronkovich\PHPMailerDSN\DSNConfigurator; +use PHPMailer\PHPMailer\DSNConfigurator; add_action('phpmailer_init', function ($phpmailer) { static $configurator = null;