diff --git a/composer.json b/composer.json index b40b65c..998db9c 100644 --- a/composer.json +++ b/composer.json @@ -1,17 +1,22 @@ { - "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-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