Plugin Directory

Changeset 3279601


Ignore:
Timestamp:
04/23/2025 04:35:53 AM (11 months ago)
Author:
smmooth
Message:

tagging version 1.1.3

Location:
smooth-smtp
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smooth-smtp/tags/1.1.3/includes/class-smooth-smtp-mailer.php

    r3275846 r3279601  
    7777        add_filter('wp_mail_content_type', array($this, 'set_mail_content_type'));
    7878       
     79        // Get fallback values
     80        $from_email = !empty($this->settings['from_email']) ? $this->settings['from_email'] : get_option('admin_email');
     81        $from_name = !empty($this->settings['from_name']) ? $this->settings['from_name'] : get_bloginfo('name');
     82       
    7983        // Prepare email content
    8084        if ($is_html) {
     
    8488            $message .= '<p>If you\'re reading this, it means your SMTP settings are configured correctly!</p>';
    8589            $message .= '<hr>';
    86             $message .= '<p><small>Sent from: ' . $this->settings['from_name'] . ' (' . $this->settings['from_email'] . ')</small></p>';
     90            $message .= '<p><small>Sent from: ' . $from_name . ' (' . $from_email . ')</small></p>';
    8791        } else {
    8892            $subject = 'Smooth SMTP: Plain Text Test Email';
     
    9195            $message .= "If you're reading this, it means your SMTP settings are configured correctly!\n\n";
    9296            $message .= "---\n";
    93             $message .= "Sent from: " . $this->settings['from_name'] . " (" . $this->settings['from_email'] . ")";
     97            $message .= "Sent from: " . $from_name . " (" . $from_email . ")";
    9498        }
    9599   
     
    100104            'message' => $message,
    101105            'headers' => array(
    102                 'From: ' . $this->settings['from_name'] . ' <' . $this->settings['from_email'] . '>'
     106                'From: ' . $from_name . ' <' . $from_email . '>'
    103107            )
    104108        );
     
    150154        $recipients = !empty($custom_recipients) ? explode(',', $custom_recipients) : explode(',', $email->recipients);
    151155       
     156        // Get fallback values
     157        $from_email = !empty($this->settings['from_email']) ? $this->settings['from_email'] : get_option('admin_email');
     158        $from_name = !empty($this->settings['from_name']) ? $this->settings['from_name'] : get_bloginfo('name');
     159       
    152160        // Prepare email arguments
    153161        $email_args = array(
     
    156164            'message' => $email->message,
    157165            'headers' => array(
    158                 'From: ' . $this->settings['from_name'] . ' <' . $this->settings['from_email'] . '>'
     166                'From: ' . $from_name . ' <' . $from_email . '>'
    159167            )
    160168        );
  • smooth-smtp/tags/1.1.3/readme.txt

    r3275870 r3279601  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.1.2
     6Stable tag: 1.1.3
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    7171Commit test email screen.
    7272
     73= 1.1.3 =
     74If sender name and/or sender from email is not set, fallback to use WordPress Site Title as sender name and WordPress Admin Email Address as sender email.
     75
    7376== Upgrade Notice ==
    7477
  • smooth-smtp/tags/1.1.3/smooth-smtp.php

    r3275870 r3279601  
    33 * Plugin Name: Smooth SMTP
    44 * Description: SMTP configuration and email logging for WordPress
    5  * Version: 1.1.2
     5 * Version: 1.1.3
    66 * Author: SMMOOTH Plugins
    77 * Text Domain: smooth-smtp
     
    2222
    2323// Define plugin constants
    24 define('SMOOTH_SMTP_VERSION', '1.1.2');
     24define('SMOOTH_SMTP_VERSION', '1.1.3');
    2525define('SMOOTH_SMTP_FILE', __FILE__);
    2626define('SMOOTH_SMTP_PATH', dirname(SMOOTH_SMTP_FILE) . '/');
  • smooth-smtp/trunk/includes/class-smooth-smtp-mailer.php

    r3275846 r3279601  
    7777        add_filter('wp_mail_content_type', array($this, 'set_mail_content_type'));
    7878       
     79        // Get fallback values
     80        $from_email = !empty($this->settings['from_email']) ? $this->settings['from_email'] : get_option('admin_email');
     81        $from_name = !empty($this->settings['from_name']) ? $this->settings['from_name'] : get_bloginfo('name');
     82       
    7983        // Prepare email content
    8084        if ($is_html) {
     
    8488            $message .= '<p>If you\'re reading this, it means your SMTP settings are configured correctly!</p>';
    8589            $message .= '<hr>';
    86             $message .= '<p><small>Sent from: ' . $this->settings['from_name'] . ' (' . $this->settings['from_email'] . ')</small></p>';
     90            $message .= '<p><small>Sent from: ' . $from_name . ' (' . $from_email . ')</small></p>';
    8791        } else {
    8892            $subject = 'Smooth SMTP: Plain Text Test Email';
     
    9195            $message .= "If you're reading this, it means your SMTP settings are configured correctly!\n\n";
    9296            $message .= "---\n";
    93             $message .= "Sent from: " . $this->settings['from_name'] . " (" . $this->settings['from_email'] . ")";
     97            $message .= "Sent from: " . $from_name . " (" . $from_email . ")";
    9498        }
    9599   
     
    100104            'message' => $message,
    101105            'headers' => array(
    102                 'From: ' . $this->settings['from_name'] . ' <' . $this->settings['from_email'] . '>'
     106                'From: ' . $from_name . ' <' . $from_email . '>'
    103107            )
    104108        );
     
    150154        $recipients = !empty($custom_recipients) ? explode(',', $custom_recipients) : explode(',', $email->recipients);
    151155       
     156        // Get fallback values
     157        $from_email = !empty($this->settings['from_email']) ? $this->settings['from_email'] : get_option('admin_email');
     158        $from_name = !empty($this->settings['from_name']) ? $this->settings['from_name'] : get_bloginfo('name');
     159       
    152160        // Prepare email arguments
    153161        $email_args = array(
     
    156164            'message' => $email->message,
    157165            'headers' => array(
    158                 'From: ' . $this->settings['from_name'] . ' <' . $this->settings['from_email'] . '>'
     166                'From: ' . $from_name . ' <' . $from_email . '>'
    159167            )
    160168        );
  • smooth-smtp/trunk/readme.txt

    r3275870 r3279601  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.1.2
     6Stable tag: 1.1.3
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    7171Commit test email screen.
    7272
     73= 1.1.3 =
     74If sender name and/or sender from email is not set, fallback to use WordPress Site Title as sender name and WordPress Admin Email Address as sender email.
     75
    7376== Upgrade Notice ==
    7477
  • smooth-smtp/trunk/smooth-smtp.php

    r3275870 r3279601  
    33 * Plugin Name: Smooth SMTP
    44 * Description: SMTP configuration and email logging for WordPress
    5  * Version: 1.1.2
     5 * Version: 1.1.3
    66 * Author: SMMOOTH Plugins
    77 * Text Domain: smooth-smtp
     
    2222
    2323// Define plugin constants
    24 define('SMOOTH_SMTP_VERSION', '1.1.2');
     24define('SMOOTH_SMTP_VERSION', '1.1.3');
    2525define('SMOOTH_SMTP_FILE', __FILE__);
    2626define('SMOOTH_SMTP_PATH', dirname(SMOOTH_SMTP_FILE) . '/');
Note: See TracChangeset for help on using the changeset viewer.