Changeset 3383615
- Timestamp:
- 10/23/2025 07:04:28 PM (5 months ago)
- Location:
- yournotify/trunk
- Files:
-
- 3 edited
-
admin-settings-tabbed.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
yournotify.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yournotify/trunk/admin-settings-tabbed.php
r3377318 r3383615 61 61 <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> 62 62 <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> 63 65 </table> 64 66 <?php submit_button(); ?> -
yournotify/trunk/readme.txt
r3377328 r3383615 4 4 Requires at least: 4.6 5 5 Tested up to: 6.7 6 Stable tag: 2.1. 36 Stable tag: 2.1.4 7 7 License: GPLv3 or later 8 8 -
yournotify/trunk/yournotify.php
r3377328 r3383615 4 4 * Plugin URI: https://yournotify.com 5 5 * Description: Yournotify WP Plugin — SMTP, Subscriber Form, Contact Form. 6 * Version: 2.1. 36 * Version: 2.1.4 7 7 * Author: Yournotify 8 8 * Author URI: https://yournotify.com … … 24 24 $phpmailer->SMTPSecure = 'tls'; 25 25 $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 } 26 32 }, 10); 27 33 … … 67 73 register_setting('yournotify_smtp','yournotify_smtp_user', ['type'=>'string','sanitize_callback'=>function($v){return is_string($v)?trim($v):'';} ]); 68 74 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):''; }]); 69 77 }); 70 78
Note: See TracChangeset
for help on using the changeset viewer.