updated plugin SMTP Mailer version 1.1.26
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
Plugin Name: SMTP Mailer
|
Plugin Name: SMTP Mailer
|
||||||
Version: 1.1.18
|
Version: 1.1.26
|
||||||
|
Requires at least: 7.0
|
||||||
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 +17,8 @@ if (!defined('ABSPATH')){
|
|||||||
|
|
||||||
class SMTP_MAILER {
|
class SMTP_MAILER {
|
||||||
|
|
||||||
var $plugin_version = '1.1.18';
|
var $plugin_version = '1.1.26';
|
||||||
var $phpmailer_version = '6.9.3';
|
var $phpmailer_version = '7.0.2';
|
||||||
var $plugin_url;
|
var $plugin_url;
|
||||||
var $plugin_path;
|
var $plugin_path;
|
||||||
|
|
||||||
@ -63,14 +64,16 @@ class SMTP_MAILER {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function plugin_url() {
|
function plugin_url() {
|
||||||
if ($this->plugin_url)
|
if ($this->plugin_url){
|
||||||
return $this->plugin_url;
|
return $this->plugin_url;
|
||||||
|
}
|
||||||
return $this->plugin_url = plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__));
|
return $this->plugin_url = plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__));
|
||||||
}
|
}
|
||||||
|
|
||||||
function plugin_path() {
|
function plugin_path() {
|
||||||
if ($this->plugin_path)
|
if ($this->plugin_path){
|
||||||
return $this->plugin_path;
|
return $this->plugin_path;
|
||||||
|
}
|
||||||
return $this->plugin_path = untrailingslashit(plugin_dir_path(__FILE__));
|
return $this->plugin_path = untrailingslashit(plugin_dir_path(__FILE__));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +97,7 @@ class SMTP_MAILER {
|
|||||||
'smtp-mailer-settings&action=advanced' => __('Advanced', 'smtp-mailer'),
|
'smtp-mailer-settings&action=advanced' => __('Advanced', 'smtp-mailer'),
|
||||||
);
|
);
|
||||||
$url = "https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482";
|
$url = "https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482";
|
||||||
$link_text = sprintf(__('Please visit the <a target="_blank" href="%s">SMTP Mailer</a> documentation page for usage instructions.', 'smtp-mailer'), esc_url($url));
|
$link_text = sprintf(__('Please visit the <a target="_blank" href="%s">SMTP Mailer</a> documentation page for setup instructions.', 'smtp-mailer'), esc_url($url));
|
||||||
$allowed_html_tags = array(
|
$allowed_html_tags = array(
|
||||||
'a' => array(
|
'a' => array(
|
||||||
'href' => array(),
|
'href' => array(),
|
||||||
@ -294,6 +297,14 @@ class SMTP_MAILER {
|
|||||||
if(isset($_POST['from_name']) && !empty($_POST['from_name'])){
|
if(isset($_POST['from_name']) && !empty($_POST['from_name'])){
|
||||||
$from_name = sanitize_text_field(stripslashes($_POST['from_name']));
|
$from_name = sanitize_text_field(stripslashes($_POST['from_name']));
|
||||||
}
|
}
|
||||||
|
$force_from_name = '';
|
||||||
|
if(isset($_POST['force_from_name']) && !empty($_POST['force_from_name'])){
|
||||||
|
$force_from_name = sanitize_text_field($_POST['force_from_name']);
|
||||||
|
}
|
||||||
|
$force_from_email = '';
|
||||||
|
if(isset($_POST['force_from_email']) && !empty($_POST['force_from_email'])){
|
||||||
|
$force_from_email = sanitize_text_field($_POST['force_from_email']);
|
||||||
|
}
|
||||||
$force_from_address = '';
|
$force_from_address = '';
|
||||||
if(isset($_POST['force_from_address']) && !empty($_POST['force_from_address'])){
|
if(isset($_POST['force_from_address']) && !empty($_POST['force_from_address'])){
|
||||||
$force_from_address = sanitize_text_field($_POST['force_from_address']);
|
$force_from_address = sanitize_text_field($_POST['force_from_address']);
|
||||||
@ -313,6 +324,8 @@ class SMTP_MAILER {
|
|||||||
$options['smtp_port'] = $smtp_port;
|
$options['smtp_port'] = $smtp_port;
|
||||||
$options['from_email'] = $from_email;
|
$options['from_email'] = $from_email;
|
||||||
$options['from_name'] = $from_name;
|
$options['from_name'] = $from_name;
|
||||||
|
$options['force_from_name'] = $force_from_name;
|
||||||
|
$options['force_from_email'] = $force_from_email;
|
||||||
$options['force_from_address'] = $force_from_address;
|
$options['force_from_address'] = $force_from_address;
|
||||||
$options['disable_ssl_verification'] = $disable_ssl_verification;
|
$options['disable_ssl_verification'] = $disable_ssl_verification;
|
||||||
smtp_mailer_update_option($options);
|
smtp_mailer_update_option($options);
|
||||||
@ -320,12 +333,31 @@ class SMTP_MAILER {
|
|||||||
echo __('Settings Saved!', 'smtp-mailer');
|
echo __('Settings Saved!', 'smtp-mailer');
|
||||||
echo '</strong></p></div>';
|
echo '</strong></p></div>';
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
if (isset($_POST['smtp_mailer_delete_options'])) {
|
||||||
|
if(check_admin_referer('smtp_mailer_delete_options', 'smtp_mailer_delete_options_nonce')) {
|
||||||
|
delete_option('smtp_mailer_options');
|
||||||
|
echo '<div id="message" class="updated fade"><p><strong>';
|
||||||
|
echo __('Options deleted!', 'smtp-mailer');
|
||||||
|
echo '</strong></p></div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$options = smtp_mailer_get_option();
|
$options = smtp_mailer_get_option();
|
||||||
if(!is_array($options)){
|
if(!is_array($options)){
|
||||||
$options = smtp_mailer_get_empty_options_array();
|
$options = smtp_mailer_get_empty_options_array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid warning notice since this option was added later
|
||||||
|
if(!isset($options['force_from_name'])){
|
||||||
|
$options['force_from_name'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Avoid warning notice since this option was added later
|
||||||
|
if(!isset($options['force_from_email'])){
|
||||||
|
$options['force_from_email'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
// Avoid warning notice since this option was added later
|
// Avoid warning notice since this option was added later
|
||||||
if(!isset($options['force_from_address'])){
|
if(!isset($options['force_from_address'])){
|
||||||
$options['force_from_address'] = '';
|
$options['force_from_address'] = '';
|
||||||
@ -404,6 +436,18 @@ class SMTP_MAILER {
|
|||||||
<p class="description"><?php _e('The name which will be used as the From Name if it is not supplied to the mail function.', 'smtp-mailer');?></p></td>
|
<p class="description"><?php _e('The name which will be used as the From Name if it is not supplied to the mail function.', 'smtp-mailer');?></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr valign="top">
|
||||||
|
<th scope="row"><label for="force_from_name"><?php _e('Force From Name', 'smtp-mailer');?></label></th>
|
||||||
|
<td><input name="force_from_name" type="checkbox" id="force_from_name" <?php checked($options['force_from_name'], 1); ?> value="1">
|
||||||
|
<p class="description"><?php _e('The From name in the settings will be set for all outgoing email messages.', 'smtp-mailer');?></p></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr valign="top">
|
||||||
|
<th scope="row"><label for="force_from_email"><?php _e('Force From Email', 'smtp-mailer');?></label></th>
|
||||||
|
<td><input name="force_from_email" type="checkbox" id="force_from_email" <?php checked($options['force_from_email'], 1); ?> value="1">
|
||||||
|
<p class="description"><?php _e('The From email in the settings will be set for all outgoing email messages.', 'smtp-mailer');?></p></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row"><label for="force_from_address"><?php _e('Force From Address', 'smtp-mailer');?></label></th>
|
<th scope="row"><label for="force_from_address"><?php _e('Force From Address', 'smtp-mailer');?></label></th>
|
||||||
<td><input name="force_from_address" type="checkbox" id="force_from_address" <?php checked($options['force_from_address'], 1); ?> value="1">
|
<td><input name="force_from_address" type="checkbox" id="force_from_address" <?php checked($options['force_from_address'], 1); ?> value="1">
|
||||||
@ -422,6 +466,10 @@ class SMTP_MAILER {
|
|||||||
|
|
||||||
<p class="submit"><input type="submit" name="smtp_mailer_update_settings" id="smtp_mailer_update_settings" class="button button-primary" value="<?php _e('Save Changes', 'smtp-mailer')?>"></p>
|
<p class="submit"><input type="submit" name="smtp_mailer_update_settings" id="smtp_mailer_update_settings" class="button button-primary" value="<?php _e('Save Changes', 'smtp-mailer')?>"></p>
|
||||||
</form>
|
</form>
|
||||||
|
<form method="post" onsubmit="return confirm('Are you sure you want to delete saved options and start fresh?');">
|
||||||
|
<?php wp_nonce_field('smtp_mailer_delete_options', 'smtp_mailer_delete_options_nonce'); ?>
|
||||||
|
<p class="submit"><input type="submit" name="smtp_mailer_delete_options" id="smtp_mailer_delete_options" class="button" value="<?php _e('Delete Saved Options', 'smtp-mailer')?>"></p>
|
||||||
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
@ -496,6 +544,8 @@ function smtp_mailer_get_empty_options_array(){
|
|||||||
$options['smtp_port'] = '';
|
$options['smtp_port'] = '';
|
||||||
$options['from_email'] = '';
|
$options['from_email'] = '';
|
||||||
$options['from_name'] = '';
|
$options['from_name'] = '';
|
||||||
|
$options['force_from_name'] = '';
|
||||||
|
$options['force_from_email'] = '';
|
||||||
$options['force_from_address'] = '';
|
$options['force_from_address'] = '';
|
||||||
$options['disable_ssl_verification'] = '';
|
$options['disable_ssl_verification'] = '';
|
||||||
return $options;
|
return $options;
|
||||||
@ -574,6 +624,13 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset( $atts['embeds'] ) ) {
|
||||||
|
$embeds = $atts['embeds'];
|
||||||
|
if ( ! is_array( $embeds ) ) {
|
||||||
|
$embeds = explode( "\n", str_replace( "\r\n", "\n", $embeds ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$options = smtp_mailer_get_option();
|
$options = smtp_mailer_get_option();
|
||||||
|
|
||||||
global $phpmailer;
|
global $phpmailer;
|
||||||
@ -658,6 +715,9 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
} elseif ( false !== stripos( $charset_content, 'boundary=' ) ) {
|
} elseif ( false !== stripos( $charset_content, 'boundary=' ) ) {
|
||||||
$boundary = trim( str_replace( array( 'BOUNDARY=', 'boundary=', '"' ), '', $charset_content ) );
|
$boundary = trim( str_replace( array( 'BOUNDARY=', 'boundary=', '"' ), '', $charset_content ) );
|
||||||
$charset = '';
|
$charset = '';
|
||||||
|
if ( preg_match( '~^multipart/(\S+)~', $content_type, $matches ) ) {
|
||||||
|
$content_type = 'multipart/' . strtolower( $matches[1] ) . '; boundary="' . $boundary . '"';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Avoid setting an empty $content_type.
|
// Avoid setting an empty $content_type.
|
||||||
@ -691,6 +751,15 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
$phpmailer->Body = '';
|
$phpmailer->Body = '';
|
||||||
$phpmailer->AltBody = '';
|
$phpmailer->AltBody = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reset encoding to 8-bit, as it may have been automatically downgraded
|
||||||
|
* to 7-bit by PHPMailer (based on the body contents) in a previous call
|
||||||
|
* to wp_mail().
|
||||||
|
*
|
||||||
|
* See https://core.trac.wordpress.org/ticket/33972
|
||||||
|
*/
|
||||||
|
$phpmailer->Encoding = PHPMailer\PHPMailer\PHPMailer::ENCODING_8BIT;
|
||||||
|
|
||||||
// Set "From" name and email.
|
// Set "From" name and email.
|
||||||
|
|
||||||
// If we don't have a name from the input headers.
|
// If we don't have a name from the input headers.
|
||||||
@ -737,13 +806,21 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
* @param string $from_name Name associated with the "from" email address.
|
* @param string $from_name Name associated with the "from" email address.
|
||||||
*/
|
*/
|
||||||
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
|
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
|
||||||
|
//force from name if checked
|
||||||
|
if(isset($options['force_from_name']) && !empty($options['force_from_name'])){
|
||||||
|
$from_name = $options['from_name'];
|
||||||
|
}
|
||||||
|
//force from email if checked
|
||||||
|
if(isset($options['force_from_email']) && !empty($options['force_from_email'])){
|
||||||
|
$from_email = $options['from_email'];
|
||||||
|
}
|
||||||
//force from address if checked
|
//force from address if checked
|
||||||
if(isset($options['force_from_address']) && !empty($options['force_from_address'])){
|
if(isset($options['force_from_address']) && !empty($options['force_from_address'])){
|
||||||
$from_name = $options['from_name'];
|
$from_name = $options['from_name'];
|
||||||
$from_email = $options['from_email'];
|
$from_email = $options['from_email'];
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$phpmailer->setFrom( $from_email, $from_name, false );
|
$phpmailer->setFrom( $from_email, $from_name );
|
||||||
} catch ( PHPMailer\PHPMailer\Exception $e ) {
|
} catch ( PHPMailer\PHPMailer\Exception $e ) {
|
||||||
$mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
|
$mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
|
||||||
$mail_error_data['phpmailer_exception_code'] = $e->getCode();
|
$mail_error_data['phpmailer_exception_code'] = $e->getCode();
|
||||||
@ -794,10 +871,10 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
$phpmailer->addAddress( $address, $recipient_name );
|
$phpmailer->addAddress( $address, $recipient_name );
|
||||||
break;
|
break;
|
||||||
case 'cc':
|
case 'cc':
|
||||||
$phpmailer->addCc( $address, $recipient_name );
|
$phpmailer->addCC( $address, $recipient_name );
|
||||||
break;
|
break;
|
||||||
case 'bcc':
|
case 'bcc':
|
||||||
$phpmailer->addBcc( $address, $recipient_name );
|
$phpmailer->addBCC( $address, $recipient_name );
|
||||||
break;
|
break;
|
||||||
case 'reply_to':
|
case 'reply_to':
|
||||||
$phpmailer->addReplyTo( $address, $recipient_name );
|
$phpmailer->addReplyTo( $address, $recipient_name );
|
||||||
@ -834,9 +911,11 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
$phpmailer->SMTPAutoTLS = false;
|
$phpmailer->SMTPAutoTLS = false;
|
||||||
//enable debug when sending a test mail
|
//enable debug when sending a test mail
|
||||||
if(isset($_POST['smtp_mailer_send_test_email'])){
|
if(isset($_POST['smtp_mailer_send_test_email'])){
|
||||||
$phpmailer->SMTPDebug = 4;
|
if(is_admin() && current_user_can('manage_options')){
|
||||||
// Ask for HTML-friendly debug output
|
$phpmailer->SMTPDebug = 4;
|
||||||
$phpmailer->Debugoutput = 'html';
|
// Ask for HTML-friendly debug output
|
||||||
|
$phpmailer->Debugoutput = 'html';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//disable ssl certificate verification if checked
|
//disable ssl certificate verification if checked
|
||||||
@ -898,10 +977,6 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( false !== stripos( $content_type, 'multipart' ) && ! empty( $boundary ) ) {
|
|
||||||
$phpmailer->addCustomHeader( sprintf( 'Content-Type: %s; boundary="%s"', $content_type, $boundary ) );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $attachments ) && ! empty( $attachments ) ) {
|
if ( isset( $attachments ) && ! empty( $attachments ) ) {
|
||||||
@ -916,6 +991,51 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset( $embeds ) && ! empty( $embeds ) ) {
|
||||||
|
foreach ( $embeds as $key => $embed_path ) {
|
||||||
|
/**
|
||||||
|
* Filters the arguments for PHPMailer's addEmbeddedImage() method.
|
||||||
|
*
|
||||||
|
* @since 6.9.0
|
||||||
|
*
|
||||||
|
* @param array $args {
|
||||||
|
* An array of arguments for PHPMailer's addEmbeddedImage() method.
|
||||||
|
*
|
||||||
|
* @type string $path The path to the file.
|
||||||
|
* @type string $cid The Content-ID of the image. Default: The key in the embeds array.
|
||||||
|
* @type string $name The filename of the image.
|
||||||
|
* @type string $encoding The encoding of the image. Default: 'base64'.
|
||||||
|
* @type string $type The MIME type of the image. Default: empty string, which lets PHPMailer auto-detect.
|
||||||
|
* @type string $disposition The disposition of the image. Default: 'inline'.
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
$embed_args = apply_filters(
|
||||||
|
'wp_mail_embed_args',
|
||||||
|
array(
|
||||||
|
'path' => $embed_path,
|
||||||
|
'cid' => (string) $key,
|
||||||
|
'name' => basename( $embed_path ),
|
||||||
|
'encoding' => 'base64',
|
||||||
|
'type' => '',
|
||||||
|
'disposition' => 'inline',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
try {
|
||||||
|
$phpmailer->addEmbeddedImage(
|
||||||
|
$embed_args['path'],
|
||||||
|
$embed_args['cid'],
|
||||||
|
$embed_args['name'],
|
||||||
|
$embed_args['encoding'],
|
||||||
|
$embed_args['type'],
|
||||||
|
$embed_args['disposition']
|
||||||
|
);
|
||||||
|
} catch ( PHPMailer\PHPMailer\Exception $e ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires after PHPMailer is initialized.
|
* Fires after PHPMailer is initialized.
|
||||||
*
|
*
|
||||||
@ -925,7 +1045,7 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
*/
|
*/
|
||||||
do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
|
do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
|
||||||
|
|
||||||
$mail_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
|
$mail_data = compact( 'to', 'subject', 'message', 'headers', 'attachments', 'embeds' );
|
||||||
|
|
||||||
// Send!
|
// Send!
|
||||||
try {
|
try {
|
||||||
@ -939,15 +1059,17 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
* process the request without any errors.
|
* process the request without any errors.
|
||||||
*
|
*
|
||||||
* @since 5.9.0
|
* @since 5.9.0
|
||||||
|
* @since 6.9.0 The `$embeds` element was added to the `$mail_data` array.
|
||||||
*
|
*
|
||||||
* @param array $mail_data {
|
* @param array $mail_data {
|
||||||
* An array containing the email recipient(s), subject, message, headers, and attachments.
|
* An array containing the email recipient(s), subject, message, headers, attachments, and embeds.
|
||||||
*
|
*
|
||||||
* @type string[] $to Email addresses to send message.
|
* @type string[] $to Email addresses to send message.
|
||||||
* @type string $subject Email subject.
|
* @type string $subject Email subject.
|
||||||
* @type string $message Message contents.
|
* @type string $message Message contents.
|
||||||
* @type string[] $headers Additional headers.
|
* @type string[] $headers Additional headers.
|
||||||
* @type string[] $attachments Paths to files to attach.
|
* @type string[] $attachments Paths to files to attach.
|
||||||
|
* @type string[] $embeds Paths to files to embed.
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
do_action( 'wp_mail_succeeded', $mail_data );
|
do_action( 'wp_mail_succeeded', $mail_data );
|
||||||
@ -957,12 +1079,12 @@ function smtp_mailer_pre_wp_mail($null, $atts)
|
|||||||
$mail_data['phpmailer_exception_code'] = $e->getCode();
|
$mail_data['phpmailer_exception_code'] = $e->getCode();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires after a PHPMailer\PHPMailer\Exception is caught.
|
* Fires after a PHPMailer exception is caught.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param WP_Error $error A WP_Error object with the PHPMailer\PHPMailer\Exception message, and an array
|
* @param WP_Error $error A WP_Error object with the PHPMailer\PHPMailer\Exception message, and an array
|
||||||
* containing the mail recipient, subject, message, headers, and attachments.
|
* containing the mail recipient, subject, message, headers, attachments, and embeds.
|
||||||
*/
|
*/
|
||||||
do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_data ) );
|
do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_data ) );
|
||||||
|
|
||||||
|
|||||||
@ -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: 6.8
|
Requires at least: 7.0
|
||||||
Tested up to: 6.8
|
Tested up to: 7.0
|
||||||
Stable tag: 1.1.18
|
Stable tag: 1.1.26
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
@ -14,8 +14,6 @@ Configure a SMTP server to send email from your WordPress site. Configure the wp
|
|||||||
|
|
||||||
[SMTP Mailer](https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482) plugin allows you to configure a mail server which handles all outgoing email from your website. It takes control of the wp_mail function and use SMTP instead.
|
[SMTP Mailer](https://wphowto.net/smtp-mailer-plugin-for-wordpress-1482) plugin allows you to configure a mail server which handles all outgoing email from your website. It takes control of the wp_mail function and use SMTP instead.
|
||||||
|
|
||||||
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)
|
||||||
@ -29,8 +27,12 @@ https://www.youtube.com/watch?v=7O_jgtykcEk&rel=0
|
|||||||
* **SMTP Password**: The password to connect to your SMTP server.
|
* **SMTP Password**: The password to connect to your SMTP server.
|
||||||
* **Type of Encryption**: The encryption to be used when sending an email (TLS/SSL/No Encryption. TLS is recommended).
|
* **Type of Encryption**: The encryption to be used when sending an email (TLS/SSL/No Encryption. TLS is recommended).
|
||||||
* **SMTP Port**: The port to be used when sending an email (587/465/25). If you choose TLS the port should be set to 587. For SSL use port 465 instead.
|
* **SMTP Port**: The port to be used when sending an email (587/465/25). If you choose TLS the port should be set to 587. For SSL use port 465 instead.
|
||||||
* **From Email Address**: The email address to be used as the From Address when sending an email.
|
* **From Email Address**: The email address to be used as the From Email when sending a test email.
|
||||||
* **From Name**: The name to be used as the From Name when sending an email.
|
* **From Name**: The name to be used as the From Name when sending a test email.
|
||||||
|
* **Force From Name**: The From name in the settings is set for all outgoing email messages.
|
||||||
|
* **Force From Email**: The From email in the settings is set for all outgoing email messages.
|
||||||
|
* **Force From Address**: The From address in the settings is set for all outgoing email messages.
|
||||||
|
* **Disable SSL Certificate Verification**: As of PHP 5.6 a warning/error is shown if the SSL certificate on the server is not properly configured. This option lets you disable that behaviour.
|
||||||
|
|
||||||
=== SMTP Mailer Test Email ===
|
=== SMTP Mailer Test Email ===
|
||||||
|
|
||||||
@ -73,6 +75,30 @@ none
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.1.26 =
|
||||||
|
* WordPress 7.0 compatibility update.
|
||||||
|
|
||||||
|
= 1.1.25 =
|
||||||
|
* Added security for debug output.
|
||||||
|
|
||||||
|
= 1.1.24 =
|
||||||
|
* WordPress 6.9 compatibility update.
|
||||||
|
|
||||||
|
= 1.1.23 =
|
||||||
|
* Added options to force from name and from email.
|
||||||
|
|
||||||
|
= 1.1.22 =
|
||||||
|
* Added minimum WordPress requirements to main file.
|
||||||
|
|
||||||
|
= 1.1.21 =
|
||||||
|
* Added an option to delete saved options.
|
||||||
|
|
||||||
|
= 1.1.20 =
|
||||||
|
* Restored older settings.
|
||||||
|
|
||||||
|
= 1.1.19 =
|
||||||
|
* Added a menu for easy configuration.
|
||||||
|
|
||||||
= 1.1.18 =
|
= 1.1.18 =
|
||||||
* WordPress 6.8 compatibility update.
|
* WordPress 6.8 compatibility update.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user