From 38153c0f3e739f3d89a1a7734fd7d199bf457fab Mon Sep 17 00:00:00 2001 From: yehudah Date: Wed, 15 May 2019 12:14:32 +0000 Subject: = 2.0 - 2019-05-15 * New: Mailer Type - Added an option to send without overwrite the 'wp_mail' function, better compability to WordPress delivery. hopefully will be the default in the future. * Updated: Sendgrid API was upgraded and rewritten to the new version. * Fixed: Message-Id header was missing on SMTP * Fixed: Email logger optimization - better query for large amount of records. * Fixed: The localization was fixed to match translate.wordpress.org translation system ( Thanks to Niels de Blaauw from Level-Level ). * Fixed: Code and optimization ( Thanks to Niels de Blaauw from Level-Level ). --- postman-smtp.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'postman-smtp.php') diff --git a/postman-smtp.php b/postman-smtp.php index 0b486c8..6521fab 100644 --- a/postman-smtp.php +++ b/postman-smtp.php @@ -3,7 +3,7 @@ * Plugin Name: Post SMTP * Plugin URI: https://wordpress.org/plugins/post-smtp/ * Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes! - * Version: 1.9.8 + * Version: 2.0 * Author: Yehuda Hassine * Text Domain: post-smtp * Author URI: https://postmansmtp.com @@ -40,6 +40,8 @@ define( 'POST_BASE', __FILE__ ); define( 'POST_PATH', __DIR__ ); +define( 'POST_URL', plugins_url('', POST_BASE ) ); +define( 'POST_SMTP_VER', '2.0' ); $postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) ); $required_php_version = version_compare( PHP_VERSION, '5.6.0', '<' ); @@ -114,7 +116,7 @@ add_action( 'admin_footer', 'post_dismiss_not_configured' ); /** * Create the main Postman class to start Postman * - * @param unknown $startingMemory + * @param mixed $startingMemory */ function post_start( $startingMemory ) { post_setupPostman(); @@ -126,5 +128,5 @@ function post_start( $startingMemory ) { */ function post_setupPostman() { require_once 'Postman/Postman.php'; - $kevinCostner = new Postman( __FILE__, '1.9.8' ); + $kevinCostner = new Postman( __FILE__, POST_SMTP_VER ); } -- cgit v1.2.3