updated plugin `SMTP Mailer` version 1.1.5

This commit is contained in:
KawaiiPunk 2022-11-24 13:40:42 +00:00 committed by Gitium
parent 3ffbc5b4f7
commit 9d69ca8941
2 changed files with 12 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Plugin Name: SMTP Mailer Plugin Name: SMTP Mailer
Version: 1.1.4 Version: 1.1.5
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,8 +16,8 @@ if (!defined('ABSPATH')){
class SMTP_MAILER { class SMTP_MAILER {
var $plugin_version = '1.1.4'; var $plugin_version = '1.1.5';
var $phpmailer_version = '6.6.0'; var $phpmailer_version = '6.6.5';
var $plugin_url; var $plugin_url;
var $plugin_path; var $plugin_path;
@ -555,7 +555,7 @@ function smtp_mailer_pre_wp_mail($null, $atts)
if ( false !== $bracket_pos ) { if ( false !== $bracket_pos ) {
// Text before the bracketed email is the "From" name. // Text before the bracketed email is the "From" name.
if ( $bracket_pos > 0 ) { if ( $bracket_pos > 0 ) {
$from_name = substr( $content, 0, $bracket_pos - 1 ); $from_name = substr( $content, 0, $bracket_pos );
$from_name = str_replace( '"', '', $from_name ); $from_name = str_replace( '"', '', $from_name );
$from_name = trim( $from_name ); $from_name = trim( $from_name );
} }
@ -608,6 +608,8 @@ function smtp_mailer_pre_wp_mail($null, $atts)
$phpmailer->clearAttachments(); $phpmailer->clearAttachments();
$phpmailer->clearCustomHeaders(); $phpmailer->clearCustomHeaders();
$phpmailer->clearReplyTos(); $phpmailer->clearReplyTos();
$phpmailer->Body = '';
$phpmailer->AltBody = '';
// Set "From" name and email. // Set "From" name and email.

View File

@ -2,9 +2,9 @@
Contributors: naa986 Contributors: naa986
Donate link: https://wphowto.net/ Donate link: https://wphowto.net/
Tags: email, mail, smtp, phpmailer Tags: email, mail, smtp, phpmailer
Requires at least: 5.9 Requires at least: 6.1
Tested up to: 6.0 Tested up to: 6.1
Stable tag: 1.1.4 Stable tag: 1.1.5
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
@ -103,6 +103,9 @@ none
== Changelog == == Changelog ==
= 1.1.5 =
* Compatibility update for WordPress 6.1.
= 1.1.4 = = 1.1.4 =
* Updated the mail function for WordPress 6.0. * Updated the mail function for WordPress 6.0.