From 046895091efbe953a44b206db83d948bd19bbdf6 Mon Sep 17 00:00:00 2001 From: Enrico Deleo Date: Thu, 30 Jun 2016 19:49:18 +0200 Subject: [PATCH 1/2] better composer handling, allow for anonymus login --- composer.json | 2 +- global-smtp.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b40b65c..249564f 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "homepage": "https://rohmann.us" } ], - "type": "wordpress-muplugin", + "type": "wordpress-plugin", "require": { "php": ">=5.3.0", "composer/installers": "~1.0" diff --git a/global-smtp.php b/global-smtp.php index 775cb95..da0d134 100644 --- a/global-smtp.php +++ b/global-smtp.php @@ -269,7 +269,12 @@ public function mailer( $phpmailer ) { //assumed $phpmailer->Port = (int) GLOBAL_SMTP_PORT; - $phpmailer->SMTPSecure = GLOBAL_SMTP_SECURE; + if ( GLOBAL_SMTP_SECURE == 'none' ) { + $phpmailer->SMTPSecure = ''; + } + else { + $phpmailer->SMTPSecure = GLOBAL_SMTP_SECURE; + } $phpmailer->AuthType = GLOBAL_SMTP_AUTH_TYPE; //Optional From 0e623b89b06811f7fb36e945fb8ce033bdc81176 Mon Sep 17 00:00:00 2001 From: Enrico Deleo Date: Fri, 30 Sep 2016 14:29:15 +0200 Subject: [PATCH 2/2] . --- composer.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 249564f..998db9c 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,19 @@ { - "name": "rohmann/global-smtp", + "name": "enricodeleo/global-smtp", "description": "Utility plugin to setup SMTP mail via constants in wp-config.php", "keywords": ["wordpress", "smtp", "multisite"], - "homepage": "https://github.com/rohmann/global-smtp", + "homepage": "https://github.com/enricodeleo/global-smtp", "license": "GPLv2", "authors": [ { "name": "Alexander Rohmann", "email": "alexander@rohmann.us", "homepage": "https://rohmann.us" + }, + { + "name": "Enrico Deleo", + "email": "hello@enricodeleo.com", + "homepage": "https://enricodeleo.com" } ], "type": "wordpress-plugin",