updated plugin SMTP Mailer version 1.1.15

This commit is contained in:
KawaiiPunk 2024-06-27 12:11:10 +00:00 committed by Gitium
parent 03c1118952
commit 91db4aebe1
4 changed files with 20 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -16,6 +16,14 @@ function smtp_mailer_display_addons()
); );
array_push($addons_data, $addon_1); array_push($addons_data, $addon_1);
$addon_2 = array(
'name' => 'Email Logger',
'thumbnail' => SMTP_MAILER_URL.'/addons/images/smtp-mailer-email-logger.png',
'description' => 'Log and view all email messages',
'page_url' => 'https://wphowto.net/smtp-mailer-email-logger-7066',
);
array_push($addons_data, $addon_2);
//Display the list //Display the list
foreach ($addons_data as $addon) { foreach ($addons_data as $addon) {
?> ?>

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Plugin Name: SMTP Mailer Plugin Name: SMTP Mailer
Version: 1.1.13 Version: 1.1.15
Plugin URI: https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482 Plugin URI: https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482
Author: naa986 Author: naa986
Author URI: https://wphowto.net/ Author URI: https://wphowto.net/
@ -16,7 +16,7 @@ if (!defined('ABSPATH')){
class SMTP_MAILER { class SMTP_MAILER {
var $plugin_version = '1.1.13'; var $plugin_version = '1.1.15';
var $phpmailer_version = '6.9.1'; var $phpmailer_version = '6.9.1';
var $plugin_url; var $plugin_url;
var $plugin_path; var $plugin_path;
@ -273,8 +273,8 @@ class SMTP_MAILER {
} }
$smtp_password = ''; $smtp_password = '';
if(isset($_POST['smtp_password']) && !empty($_POST['smtp_password'])){ if(isset($_POST['smtp_password']) && !empty($_POST['smtp_password'])){
//echo "password: ".$_POST['smtp_password']; //echo "password: ".$_POST['smtp_password'].'<br>';
$smtp_password = sanitize_text_field($_POST['smtp_password']); $smtp_password = trim($_POST['smtp_password']);
$smtp_password = wp_unslash($smtp_password); // This removes slash (automatically added by WordPress) from the password when apostrophe is present $smtp_password = wp_unslash($smtp_password); // This removes slash (automatically added by WordPress) from the password when apostrophe is present
$smtp_password = base64_encode($smtp_password); $smtp_password = base64_encode($smtp_password);
} }

View File

@ -4,7 +4,7 @@ Donate link: https://wphowto.net/
Tags: email, mail, smtp, phpmailer Tags: email, mail, smtp, phpmailer
Requires at least: 6.5 Requires at least: 6.5
Tested up to: 6.5 Tested up to: 6.5
Stable tag: 1.1.13 Stable tag: 1.1.15
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -19,6 +19,7 @@ https://www.youtube.com/watch?v=7O_jgtykcEk&rel=0
=== SMTP Mailer Add-ons === === SMTP Mailer Add-ons ===
* [Reply-To](https://wphowto.net/how-to-add-a-reply-to-address-in-the-smtp-mailer-wordpress-plugin-6997) * [Reply-To](https://wphowto.net/how-to-add-a-reply-to-address-in-the-smtp-mailer-wordpress-plugin-6997)
* [Email Logger](https://wphowto.net/smtp-mailer-email-logger-7066)
=== SMTP Mailer Settings === === SMTP Mailer Settings ===
@ -72,6 +73,12 @@ none
== Changelog == == Changelog ==
= 1.1.15 =
* Updated the code for sanitizing password.
= 1.1.14 =
* Added support for the email logger add-on.
= 1.1.13 = = 1.1.13 =
* WordPress 6.5 compatibility update. * WordPress 6.5 compatibility update.