PluginProbe
FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP / 2.4.0
FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP v2.4.0
2.4.0 trunk 1.0.1 1.1.0 1.1.1 1.2.0 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.71 2.2.72 2.2.73 2.2.80 2.2.81 All 32 releases
fluent-smtp / fluent-smtp.php

fluent-smtp.php in FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP 2.4.0, at fluent-smtp.php

64 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: FluentSMTP
4 Plugin URI: https://fluentsmtp.com
5 Description: The Ultimate SMTP Connection Plugin for WordPress.
6 Version: 2.4.0
7 Author: FluentSMTP & WPManageNinja Team
8 Author URI: https://fluentsmtp.com
9 License: GPL2
10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: fluent-smtp
12 Domain Path: /language
13 Requires at least: 6.5
14 Requires PHP: 7.4
15 */
16
17 !defined('WPINC') && die;
18
19 define('FLUENTMAIL_PLUGIN_FILE', __FILE__);
20
21 require_once plugin_dir_path(__FILE__) . 'boot.php';
22
23 register_activation_hook(
24 __FILE__, array('\FluentMail\Includes\Activator', 'handle')
25 );
26
27 register_deactivation_hook(
28 __FILE__, array('\FluentMail\Includes\Deactivator', 'handle')
29 );
30
31 /**
32 * Initializes the Fluent SMTP plugin.
33 *
34 * This function creates a new instance of the FluentMail\Includes\Core\Application class and registers
35 * an action hook to be executed when the plugins are loaded. Inside the action hook, the 'fluentMail_loaded'
36 * action is triggered with the application instance as a parameter.
37 *
38 * @since 1.0.0
39 */
40 function fluentSmtpInit() {
41 $application = new FluentMail\Includes\Core\Application;
42 add_action('plugins_loaded', function () use ($application) {
43 do_action('fluentMail_loaded', $application);
44 });
45 }
46
47 fluentSmtpInit();
48
49 if (!function_exists('wp_mail')):
50 function wp_mail($to, $subject, $message, $headers = '', $attachments = array(), $embeds = array()) {
51 return fluentMailSend($to, $subject, $message, $headers, $attachments, $embeds);
52 }
53 else :
54 if (!(defined('DOING_AJAX') && DOING_AJAX)):
55 add_action('init', 'fluentMailFuncCouldNotBeLoadedRecheckPluginsLoad');
56 endif;
57 endif;
58
59 /*
60 * Thanks for checking the source code
61 * Please check the full source here: https://github.com/WPManageNinja/fluent-smtp
62 * Would love to welcome your pull request
63 */
64