Plugin Directory

Changeset 3383615


Ignore:
Timestamp:
10/23/2025 07:04:28 PM (5 months ago)
Author:
yournotify
Message:

v2.1.4: stable release (Subscriber Form + SMTP tabs, fixed save, preconfigured smtp.yournotify.com:587 TLS).

Location:
yournotify/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • yournotify/trunk/admin-settings-tabbed.php

    r3377318 r3383615  
    6161          <tr><th><?php esc_html_e('Username','yournotify'); ?></th><td><input type="text" name="yournotify_smtp_user" class="regular-text" value="<?php echo esc_attr(get_option('yournotify_smtp_user','')); ?>"></td></tr>
    6262          <tr><th><?php esc_html_e('Password','yournotify'); ?></th><td><input type="password" name="yournotify_smtp_pass" class="regular-text" value="<?php echo esc_attr(get_option('yournotify_smtp_pass','')); ?>"></td></tr>
     63          <tr><th><?php esc_html_e('From Email','yournotify'); ?></th><td><input type="email" name="yournotify_smtp_from_email" class="regular-text" value="<?php echo esc_attr(get_option('yournotify_smtp_from_email','')); ?>"> <p class="description"><?php esc_html_e('Optional. Sets the From address on outgoing emails.','yournotify'); ?></p></td></tr>
     64          <tr><th><?php esc_html_e('From Name','yournotify'); ?></th><td><input type="text" name="yournotify_smtp_from_name" class="regular-text" value="<?php echo esc_attr(get_option('yournotify_smtp_from_name','')); ?>"> <p class="description"><?php esc_html_e('Optional. Sets the From name on outgoing emails.','yournotify'); ?></p></td></tr>
    6365        </table>
    6466        <?php submit_button(); ?>
  • yournotify/trunk/readme.txt

    r3377328 r3383615  
    44Requires at least: 4.6
    55Tested up to: 6.7
    6 Stable tag: 2.1.3
     6Stable tag: 2.1.4
    77License: GPLv3 or later
    88
  • yournotify/trunk/yournotify.php

    r3377328 r3383615  
    44 * Plugin URI: https://yournotify.com
    55 * Description: Yournotify WP Plugin — SMTP, Subscriber Form, Contact Form.
    6  * Version: 2.1.3
     6 * Version: 2.1.4
    77 * Author: Yournotify
    88 * Author URI: https://yournotify.com
     
    2424    $phpmailer->SMTPSecure = 'tls';
    2525    $phpmailer->Port       = 587;
     26    // Optionally set From address/name
     27    $from_email = trim((string) get_option('yournotify_smtp_from_email',''));
     28    $from_name  = trim((string) get_option('yournotify_smtp_from_name',''));
     29    if ($from_email) {
     30        try { $phpmailer->setFrom($from_email, $from_name); } catch (Throwable $e) { /* ignore invalid from */ }
     31    }
    2632}, 10);
    2733
     
    6773        register_setting('yournotify_smtp','yournotify_smtp_user', ['type'=>'string','sanitize_callback'=>function($v){return is_string($v)?trim($v):'';} ]);
    6874        register_setting('yournotify_smtp','yournotify_smtp_pass', ['type'=>'string','sanitize_callback'=>function($v){return is_string($v)?trim($v):'';} ]);
     75        register_setting('yournotify_smtp','yournotify_smtp_from_email', ['type'=>'string','sanitize_callback'=>function($v){ return is_string($v)? trim($v):''; }]);
     76        register_setting('yournotify_smtp','yournotify_smtp_from_name',  ['type'=>'string','sanitize_callback'=>function($v){ return is_string($v)? trim($v):''; }]);
    6977    });
    7078
Note: See TracChangeset for help on using the changeset viewer.