updated plugin SMTP Mailer
version 1.1.6
This commit is contained in:
parent
4012deff14
commit
579c0de01c
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: SMTP Mailer
|
||||
Version: 1.1.5
|
||||
Version: 1.1.6
|
||||
Plugin URI: https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482
|
||||
Author: naa986
|
||||
Author URI: https://wphowto.net/
|
||||
@ -16,8 +16,8 @@ if (!defined('ABSPATH')){
|
||||
|
||||
class SMTP_MAILER {
|
||||
|
||||
var $plugin_version = '1.1.5';
|
||||
var $phpmailer_version = '6.6.5';
|
||||
var $plugin_version = '1.1.6';
|
||||
var $phpmailer_version = '6.7';
|
||||
var $plugin_url;
|
||||
var $plugin_path;
|
||||
|
||||
@ -756,7 +756,7 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
||||
}
|
||||
// Set Content-Type and charset.
|
||||
|
||||
// If we don't have a content-type from the input headers.
|
||||
// If we don't have a Content-Type from the input headers.
|
||||
if ( ! isset( $content_type ) ) {
|
||||
$content_type = 'text/plain';
|
||||
}
|
||||
@ -810,9 +810,11 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
||||
}
|
||||
|
||||
if ( isset( $attachments ) && ! empty( $attachments ) ) {
|
||||
foreach ( $attachments as $attachment ) {
|
||||
foreach ( $attachments as $filename => $attachment ) {
|
||||
$filename = is_string( $filename ) ? $filename : '';
|
||||
|
||||
try {
|
||||
$phpmailer->addAttachment( $attachment );
|
||||
$phpmailer->addAttachment( $attachment, $filename );
|
||||
} catch ( PHPMailer\PHPMailer\Exception $e ) {
|
||||
continue;
|
||||
}
|
||||
|
@ -2,9 +2,9 @@
|
||||
Contributors: naa986
|
||||
Donate link: https://wphowto.net/
|
||||
Tags: email, mail, smtp, phpmailer
|
||||
Requires at least: 6.1
|
||||
Tested up to: 6.1
|
||||
Stable tag: 1.1.5
|
||||
Requires at least: 6.2
|
||||
Tested up to: 6.2
|
||||
Stable tag: 1.1.6
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
@ -103,6 +103,9 @@ none
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.1.6 =
|
||||
* WordPress 6.2 compatibility update.
|
||||
|
||||
= 1.1.5 =
|
||||
* Compatibility update for WordPress 6.1.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user