This commit is contained in:
Javier Casares 2026-01-29 10:02:03 +00:00
commit a29b2d82ad
19 changed files with 3792 additions and 231 deletions

View file

@ -0,0 +1,42 @@
<?php
/**
* Plugin Name: Newsletter - SMTP (by ROBOTSTXT)
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-newsletter
* Description: Integrates ROBOTSTXT SMTP configuration with Newsletter plugin for efficient bulk email delivery with SMTPKeepAlive support.
* Version: 2.0.0
* Requires at least: 4.7
* Requires PHP: 7.2
* Network: true
* Security: robotstxt@robotstxt.es
* Author: ROBOTSTXT
* Author URI: https://www.robotstxt.es/
* Text Domain: robotstxt-smtp-newsletter
* Domain Path: /languages
* Requires Plugins: newsletter, robotstxt-smtp
* License: GPL-3.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Gitea Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-newsletter
* Primary Branch: main
*
* @package ROBOTSTXT_SMTP_Newsletter
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Plugin constants.
define( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION', '2.0.0' );
define( 'ROBOTSTXT_SMTP_NEWSLETTER_FILE', __FILE__ );
define( 'ROBOTSTXT_SMTP_NEWSLETTER_PATH', plugin_dir_path( __FILE__ ) );
define( 'ROBOTSTXT_SMTP_NEWSLETTER_URL', plugin_dir_url( __FILE__ ) );
// Load plugin class.
require_once ROBOTSTXT_SMTP_NEWSLETTER_PATH . 'includes/class-plugin.php';
// Initialize plugin.
add_action( 'newsletter_loaded', array( 'Robotstxt_SMTP_Newsletter\Plugin', 'instance_init' ) );
// Load updater.
require_once __DIR__ . '/robotstxt-updater.php';
Robotstxt_Updater::init( __FILE__ );