Changeset 3103431
- Timestamp:
- 06/17/2024 08:36:50 AM (22 months ago)
- Location:
- config-email-smtp
- Files:
-
- 1 deleted
- 2 edited
-
tags/0.2.0 (deleted)
-
trunk/config-email-smtp.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
config-email-smtp/trunk/config-email-smtp.php
r2962181 r3103431 6 6 * Plugin URI: https://codeberg.org/comzeradd/config-email-smtp 7 7 * Description: Sets email SMTP configuration out of wp-config variables. 8 * Version: 0. 1.08 * Version: 0.2.0 9 9 * Author: Nikos Roussos 10 10 * Author URI: https://roussos.cc … … 25 25 function display_config_email_smtp_page(): void 26 26 { 27 $message = '<h1>Config Email SMTP</h1> 28 <div>A simple Wordpress plugin to configure email SMTP preferences using wp-config variables.<br> 29 All you have to do is copy-paste the lines below at your <code>wp-config.php</code> and adjust 30 the variables with the proper values for the SMTP server you want to use.</div> 31 <div class="card"> 32 /* SMTP configuration */<br> 33 define(\'SMTP_HOST\', \'smtp.example.com\'); // Mail server hostname<br> 34 define(\'SMTP_PORT\', 25); // SMTP port number (25, 465 or 587)<br> 35 define(\'SMTP_SECURE\', \'ssl\'); // Encryption system to use (ssl or tls)<br> 36 define(\'SMTP_USERNAME\', \'myusername\'); // SMTP Authentication Username<br> 37 define(\'SMTP_PASSWORD\', \'mypassword\'); // SMTP Authentication Password<br> 38 define(\'SMTP_FROMMAIL\', \'noreply@example.com\'); // From email address<br> 39 define(\'SMTP_FROMNAME\', \'WordPress\'); // From email name<br> 40 </div>'; 27 $title = '<h1>Config Email SMTP</h1>'; 28 29 $message = __( 30 'A simple Wordpress plugin to configure email SMTP preferences using wp-config variables.<br> 31 All you have to do is copy-paste the lines below at your <code>wp-config.php</code> and adjust 32 the variables with the proper values for the SMTP server you want to use.', 33 'config-email-smtp' 34 ); 35 36 $help_text = '<div class="card"> 37 /* SMTP configuration */<br> 38 define(\'SMTP_HOST\', \'smtp.example.com\'); // Mail server hostname<br> 39 define(\'SMTP_PORT\', 25); // SMTP port number (25, 465 or 587)<br> 40 define(\'SMTP_SECURE\', \'ssl\'); // Encryption system to use (ssl or tls)<br> 41 define(\'SMTP_USERNAME\', \'myusername\'); // SMTP Authentication Username<br> 42 define(\'SMTP_PASSWORD\', \'mypassword\'); // SMTP Authentication Password<br> 43 define(\'SMTP_FROMMAIL\', \'noreply@example.com\'); // From email address<br> 44 define(\'SMTP_FROMNAME\', \'WordPress\'); // From email name<br> 45 </div>'; 46 41 47 $allowed_html = array( 42 48 'h1' => array(), … … 46 52 'br' => array() 47 53 ); 48 echo wp_kses($message, $allowed_html); 54 55 echo wp_kses($title . '<div>' . $message . '</div>' . $help_text, $allowed_html); 49 56 } 50 57 -
config-email-smtp/trunk/readme.txt
r2962187 r3103431 4 4 Tags: email, smtp 5 5 Requires at least: 5.0 6 Tested up to: 6. 37 Stable tag: 0. 1.06 Tested up to: 6.5 7 Stable tag: 0.2.0 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.