PluginProbe ʕ •ᴥ•ʔ
Site Mailer – SMTP Replacement, Email API Deliverability & Email Log / 1.4.5
Site Mailer – SMTP Replacement, Email API Deliverability & Email Log v1.4.5
1.4.5 trunk 0.0.1 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4
site-mailer / site-mailer.php
site-mailer Last commit date
assets 3 days ago classes 3 days ago includes 4 months ago modules 3 days ago scripts 3 days ago vendor 3 days ago README.md 1 month ago index.php 1 year ago plugin.php 1 year ago readme.txt 3 days ago site-mailer.php 3 days ago
site-mailer.php
73 lines
1 <?php
2 /**
3 * Plugin Name: Site Mailer - SMTP Replacement, Email API Deliverability & Email Log
4 * Description: Effortlessly manage transactional emails with Site Mailer. High deliverability, logs and statistics, and no SMTP plugins needed.
5 * Plugin URI: https://elementor.com/
6 * Version: 1.4.5
7 * Author: Elementor.com
8 * Author URI: https://go.elementor.com/author-url-sm/
9 * Text Domain: site-mailer
10 * License: GPL-3.0
11 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
12 *
13 * Site Mailer is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * any later version.
17 *
18 * Site Mailer is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 */
23
24 if ( ! defined( 'ABSPATH' ) ) {
25 exit; // Exit if accessed directly.
26 }
27
28 define( 'SITE_MAILER_VERSION', '1.4.5' );
29 define( 'SITE_MAILER_FILE', __FILE__ );
30 define( 'SITE_MAILER_PATH', plugin_dir_path( SITE_MAILER_FILE ) );
31 define( 'SITE_MAILER_URL', plugins_url( '/', SITE_MAILER_FILE ) );
32 define( 'SITE_MAILER_ASSETS_PATH', SITE_MAILER_PATH . 'assets/' );
33 define( 'SITE_MAILER_ASSETS_URL', SITE_MAILER_URL . 'assets/' );
34
35 /**
36 * SiteMailer Class
37 *
38 */
39 final class SiteMailer {
40
41 /**
42 * Constructor
43 *
44 * @access public
45 */
46 public function __construct() {
47 // Load Composer autoloader
48 require_once SITE_MAILER_PATH . 'vendor/autoload.php';
49
50 // Init Plugin
51 add_action( 'plugins_loaded', [ $this, 'init' ] );
52 }
53
54 /**
55 * Initialize the plugin
56 *
57 * Do your Validations here:
58 * for example checks for basic plugin requirements, if one check fail don't continue,
59 * if all check have passed include the plugin class.
60 *
61 * Fired by `plugins_loaded` action hook.
62 *
63 * @since 1.2.0
64 * @access public
65 */
66 public function init() {
67 // Once we get here, We have passed all validation checks, so we can safely include our plugin
68 require_once 'plugin.php';
69 }
70 }
71 // Instantiate SiteMailer..
72 new SiteMailer();
73